diff options
author | 2018-09-07 15:56:34 +0300 | |
---|---|---|
committer | 2018-09-07 15:56:34 +0300 | |
commit | 7e73ada4e2e568818f9221068c8687728f2c9ce8 (patch) | |
tree | c93d822718559b360ee39d6cd7b2522de8d52511 /juick-server/src/main/java/com/juick/server/www/Utils.java | |
parent | 6fc88562fbfdc3f66f9e6f4d96f0ad8199a50863 (diff) |
Fix referer redirect
Diffstat (limited to 'juick-server/src/main/java/com/juick/server/www/Utils.java')
-rw-r--r-- | juick-server/src/main/java/com/juick/server/www/Utils.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/juick-server/src/main/java/com/juick/server/www/Utils.java b/juick-server/src/main/java/com/juick/server/www/Utils.java index 61278e17..e53c142b 100644 --- a/juick-server/src/main/java/com/juick/server/www/Utils.java +++ b/juick-server/src/main/java/com/juick/server/www/Utils.java @@ -40,6 +40,6 @@ public class Utils { */ public static Optional<String> getPreviousPageByRequest(HttpServletRequest request) { - return Optional.ofNullable(request.getHeader("Referer")).map(requestUrl -> "redirect:" + requestUrl); + return Optional.ofNullable(request.getHeader("Referer")); } } |