Skip to content

Commit 08ea234

Browse files
committed
Polish RequestCache ignores multipart requests
1 parent 1ab05da commit 08ea234

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

config/src/main/java/org/springframework/security/config/annotation/web/configurers/RequestCacheConfigurer.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,8 @@ private RequestMatcher notMatchingMediaType(H http, MediaType mediaType) {
172172
contentNegotiationStrategy = new HeaderContentNegotiationStrategy();
173173
}
174174

175-
MediaTypeRequestMatcher jsonRequest = new MediaTypeRequestMatcher(contentNegotiationStrategy, mediaType);
176-
jsonRequest.setIgnoredMediaTypes(Collections.singleton(MediaType.ALL));
177-
return new NegatedRequestMatcher(jsonRequest);
175+
MediaTypeRequestMatcher mediaRequest = new MediaTypeRequestMatcher(contentNegotiationStrategy, mediaType);
176+
mediaRequest.setIgnoredMediaTypes(Collections.singleton(MediaType.ALL));
177+
return new NegatedRequestMatcher(mediaRequest);
178178
}
179179
}

0 commit comments

Comments
 (0)