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…
Reference in New Issue