From 2ac94535e6ea3d63004bbcac2e39c8ae56471f6c Mon Sep 17 00:00:00 2001 From: Loredana Crusoveanu Date: Sat, 26 May 2018 16:55:30 +0300 Subject: [PATCH] fix filter --- .../main/java/com/baeldung/functional/IndexRewriteFilter.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/spring-5/src/main/java/com/baeldung/functional/IndexRewriteFilter.java b/spring-5/src/main/java/com/baeldung/functional/IndexRewriteFilter.java index 3e91a0354b..551ea6c84b 100644 --- a/spring-5/src/main/java/com/baeldung/functional/IndexRewriteFilter.java +++ b/spring-5/src/main/java/com/baeldung/functional/IndexRewriteFilter.java @@ -16,8 +16,6 @@ class IndexRewriteFilter implements WebFilter { .equals("/")) { return webFilterChain.filter(serverWebExchange.mutate() .request(builder -> builder.method(request.getMethod()) - .contextPath(request.getPath() - .toString()) .path("/test")) .build()); }