Use RequestPath

Fixes gh-4389
This commit is contained in:
Rob Winch 2017-06-12 12:42:15 -05:00
parent 6c286696b4
commit 6db418f47b

View File

@ -56,7 +56,7 @@ public final class PathMatcherServerWebExchangeMatcher implements ServerWebExcha
if(this.method != null && !this.method.equals(request.getMethod())) { if(this.method != null && !this.method.equals(request.getMethod())) {
return MatchResult.notMatch(); return MatchResult.notMatch();
} }
String path = request.getPathWithinApplication(); String path = request.getPath().pathWithinApplication().value();
boolean match = pathMatcher.match(pattern, path); boolean match = pathMatcher.match(pattern, path);
if(!match) { if(!match) {
return MatchResult.notMatch(); return MatchResult.notMatch();