From 795fe65a5455e7422ce355bb4810cbda3e82dd53 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Fri, 7 Sep 2018 15:43:18 +0300 Subject: fix anythingFilter --- .../src/main/java/com/juick/server/www/controllers/AnythingFilter.java | 1 + 1 file changed, 1 insertion(+) diff --git a/juick-server/src/main/java/com/juick/server/www/controllers/AnythingFilter.java b/juick-server/src/main/java/com/juick/server/www/controllers/AnythingFilter.java index 4bdbf298..cdbeafc0 100644 --- a/juick-server/src/main/java/com/juick/server/www/controllers/AnythingFilter.java +++ b/juick-server/src/main/java/com/juick/server/www/controllers/AnythingFilter.java @@ -30,6 +30,7 @@ public class AnythingFilter extends OncePerRequestFilter { String upgrade = servletRequest.getHeader("Connection"); if (upgrade != null && upgrade.equals("Upgrade")) { filterChain.doFilter(servletRequest, servletResponse); + return; } UriComponents components = ServletUriComponentsBuilder.fromCurrentRequestUri().build(); String anything = components.getPath().substring(1); -- cgit v1.2.3