Fix error message typo in ShallowEtagHeaderFilter

Issue: SPR-13194
This commit is contained in:
Brian Clozel
2015-07-03 21:40:48 +02:00
parent ea0c37a535
commit 85a80e2a94

View File

@@ -94,7 +94,7 @@ public class ShallowEtagHeaderFilter extends OncePerRequestFilter {
private void updateResponse(HttpServletRequest request, HttpServletResponse response) throws IOException {
ContentCachingResponseWrapper responseWrapper =
WebUtils.getNativeResponse(response, ContentCachingResponseWrapper.class);
Assert.notNull(responseWrapper, "ShallowEtagResponseWrapper not found");
Assert.notNull(responseWrapper, "ContentCachingResponseWrapper not found");
HttpServletResponse rawResponse = (HttpServletResponse) responseWrapper.getResponse();
int statusCode = responseWrapper.getStatusCode();