diff options
author | Felix Fontein <ff@dybuster.com> | 2020-04-08 13:48:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-08 14:48:27 +0300 |
commit | 477e9fe824efeae0085ea15ec4bd05740fa2df40 (patch) | |
tree | 2add1a79844d63c9bcbc8ee5fa0904a21fdd7af8 /client/src | |
parent | a486f6480979e93812cb1236e89e41d03f79d448 (diff) | |
download | vaadin-framework-477e9fe824efeae0085ea15ec4bd05740fa2df40.tar.gz vaadin-framework-477e9fe824efeae0085ea15ec4bd05740fa2df40.zip |
Expired session: use 403 Forbidden instead of 410 Gone (#11859)
Use 403 Forbidden instead of 410 Gone when session expired. Also prevent caching in more cases.
Diffstat (limited to 'client/src')
-rw-r--r-- | client/src/main/java/com/vaadin/client/communication/DefaultConnectionStateHandler.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/src/main/java/com/vaadin/client/communication/DefaultConnectionStateHandler.java b/client/src/main/java/com/vaadin/client/communication/DefaultConnectionStateHandler.java index 27c7052d30..f0630592be 100644 --- a/client/src/main/java/com/vaadin/client/communication/DefaultConnectionStateHandler.java +++ b/client/src/main/java/com/vaadin/client/communication/DefaultConnectionStateHandler.java @@ -146,7 +146,7 @@ public class DefaultConnectionStateHandler implements ConnectionStateHandler { int statusCode = response.getStatusCode(); getLogger().warning("Heartbeat request returned " + statusCode); - if (response.getStatusCode() == Response.SC_GONE) { + if (response.getStatusCode() == Response.SC_FORBIDDEN) { // Session expired getConnection().showSessionExpiredError(null); stopApplication(); |