mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-27 06:12:27 +00:00
Polish RequestCache ignores multipart requests
This commit is contained in:
parent
1ab05dae02
commit
08ea2348d6
@ -172,8 +172,8 @@ public final class RequestCacheConfigurer<H extends HttpSecurityBuilder<H>> exte
|
|||||||
contentNegotiationStrategy = new HeaderContentNegotiationStrategy();
|
contentNegotiationStrategy = new HeaderContentNegotiationStrategy();
|
||||||
}
|
}
|
||||||
|
|
||||||
MediaTypeRequestMatcher jsonRequest = new MediaTypeRequestMatcher(contentNegotiationStrategy, mediaType);
|
MediaTypeRequestMatcher mediaRequest = new MediaTypeRequestMatcher(contentNegotiationStrategy, mediaType);
|
||||||
jsonRequest.setIgnoredMediaTypes(Collections.singleton(MediaType.ALL));
|
mediaRequest.setIgnoredMediaTypes(Collections.singleton(MediaType.ALL));
|
||||||
return new NegatedRequestMatcher(jsonRequest);
|
return new NegatedRequestMatcher(mediaRequest);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user