mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-27 06:12:27 +00:00
Fixes for changes in SPR-15397
This commit is contained in:
parent
ae17cc255b
commit
ac6a86fb5f
@ -27,6 +27,7 @@ import org.springframework.util.Assert;
|
|||||||
import org.springframework.util.PathMatcher;
|
import org.springframework.util.PathMatcher;
|
||||||
import org.springframework.web.server.ServerWebExchange;
|
import org.springframework.web.server.ServerWebExchange;
|
||||||
import org.springframework.web.server.support.HttpRequestPathHelper;
|
import org.springframework.web.server.support.HttpRequestPathHelper;
|
||||||
|
import org.springframework.web.server.support.LookupPath;
|
||||||
import reactor.core.publisher.Mono;
|
import reactor.core.publisher.Mono;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -57,7 +58,8 @@ 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 = helper.getLookupPathForRequest(exchange);
|
LookupPath lookupPath = helper.getLookupPathForRequest(exchange);
|
||||||
|
String path = lookupPath.getPath();
|
||||||
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