Polish RequestCache ignores multipart requests

This commit is contained in:
Rob Winch 2019-08-15 09:20:45 -05:00
parent 1ab05dae02
commit 08ea2348d6
1 changed files with 3 additions and 3 deletions

View File

@ -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);
} }
} }