mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-28 14:52:24 +00:00
Use RequestPath
Fixes gh-4389
This commit is contained in:
parent
6c286696b4
commit
6db418f47b
@ -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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user