aboutsummaryrefslogtreecommitdiffstats
path: root/client/src
diff options
context:
space:
mode:
authorFelix Fontein <ff@dybuster.com>2020-04-08 13:48:27 +0200
committerGitHub <noreply@github.com>2020-04-08 14:48:27 +0300
commit477e9fe824efeae0085ea15ec4bd05740fa2df40 (patch)
tree2add1a79844d63c9bcbc8ee5fa0904a21fdd7af8 /client/src
parenta486f6480979e93812cb1236e89e41d03f79d448 (diff)
downloadvaadin-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.java2
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();