Fix ForwardedHeaderFilter with non-empty contextPath

Issue: SPR-15088
This commit is contained in:
Rob Winch
2017-01-03 14:48:00 -06:00
parent e78ea34711
commit df98d304fd
2 changed files with 2 additions and 25 deletions

View File

@@ -262,7 +262,7 @@ public class ForwardedHeaderFilter extends OncePerRequestFilter {
// Relative to Servlet container root or to current request
String path;
if (location.startsWith(FOLDER_SEPARATOR)) {
path = this.request.getContextPath() + location;
path = location;
}
else {
path = StringUtils.applyRelativePath(this.request.getRequestURI(), location);