Improve Content-Length exception message

In case ShallowEtagHeaderFilter is not used, the message was confusing
This commit is contained in:
Dennis Kieselhorst
2015-12-18 12:14:28 +01:00
committed by Brian Clozel
parent cdda839426
commit 554bf4958d

View File

@@ -138,7 +138,7 @@ public class ContentCachingResponseWrapper extends HttpServletResponseWrapper {
// Overrides Servlet 3.1 setContentLengthLong(long) at runtime
public void setContentLengthLong(long len) {
if (len > Integer.MAX_VALUE) {
throw new IllegalArgumentException("Content-Length exceeds ShallowEtagHeaderFilter's maximum (" +
throw new IllegalArgumentException("Content-Length exceeds ContentCachingResponseWrapper's maximum (" +
Integer.MAX_VALUE + "): " + len);
}
int lenInt = (int) len;