An empty X-Forwarded-Prefix with a path containing escape sequences leads to exceptions.
This commit is contained in:
committed by
Rossen Stoyanchev
parent
2b94205ba9
commit
4973e110ee
@@ -96,7 +96,7 @@ public class ForwardedHeaderTransformer implements Function<ServerHttpRequest, S
|
||||
builder.uri(uri);
|
||||
String prefix = getForwardedPrefix(request);
|
||||
if (prefix != null) {
|
||||
builder.path(prefix + uri.getPath());
|
||||
builder.path(prefix + uri.getRawPath());
|
||||
builder.contextPath(prefix);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user