aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/server/www/controllers
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2019-04-06 21:53:13 +0300
committerGravatar Vitaly Takmazov2019-04-06 23:10:23 +0300
commit384c61ceae3301c6bc92ee6f591ed9d186b15204 (patch)
treec337cb96e242d81794999435b526e423a3fa6415 /src/main/java/com/juick/server/www/controllers
parent347674599f4ee8e2682c8ab7a80d87e0080f310c (diff)
Message properties
Diffstat (limited to 'src/main/java/com/juick/server/www/controllers')
-rw-r--r--src/main/java/com/juick/server/www/controllers/AnythingFilter.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/juick/server/www/controllers/AnythingFilter.java b/src/main/java/com/juick/server/www/controllers/AnythingFilter.java
index 57b298eb..1f4cf75a 100644
--- a/src/main/java/com/juick/server/www/controllers/AnythingFilter.java
+++ b/src/main/java/com/juick/server/www/controllers/AnythingFilter.java
@@ -53,7 +53,7 @@ public class AnythingFilter extends OncePerRequestFilter {
}
com.juick.User user = userService.getUserByName(anything);
if (user.getUid() > 0) {
- ((HttpServletResponse)servletResponse).sendRedirect("/" + user.getName() + "/");
+ servletResponse.sendRedirect("/" + user.getName() + "/");
} else {
filterChain.doFilter(servletRequest, servletResponse);
}