Add an option for ForwardedHeaderFilter to only process the
HttpServletRequest. This means that HttpServletResponse.sendRedirect will
only work when the application is conifgured to use relative redirects
using Servlet Container specific setup.
Issue: SPR-15717
@ -79,6 +79,8 @@ public class ForwardedHeaderFilter extends OncePerRequestFilter {
@@ -79,6 +79,8 @@ public class ForwardedHeaderFilter extends OncePerRequestFilter {
privatebooleanremoveOnly;
privatebooleanrequestOnly;
publicForwardedHeaderFilter(){
this.pathHelper=newUrlPathHelper();
@ -97,6 +99,20 @@ public class ForwardedHeaderFilter extends OncePerRequestFilter {
@@ -97,6 +99,20 @@ public class ForwardedHeaderFilter extends OncePerRequestFilter {
@ -130,7 +146,8 @@ public class ForwardedHeaderFilter extends OncePerRequestFilter {
@@ -130,7 +146,8 @@ public class ForwardedHeaderFilter extends OncePerRequestFilter {