Skip to content

Commit 554bf49

Browse files
dekibclozel
authored andcommitted
Improve Content-Length exception message
In case ShallowEtagHeaderFilter is not used, the message was confusing
1 parent cdda839 commit 554bf49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-web/src/main/java/org/springframework/web/util/ContentCachingResponseWrapper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public void setContentLength(int len) {
138138
// Overrides Servlet 3.1 setContentLengthLong(long) at runtime
139139
public void setContentLengthLong(long len) {
140140
if (len > Integer.MAX_VALUE) {
141-
throw new IllegalArgumentException("Content-Length exceeds ShallowEtagHeaderFilter's maximum (" +
141+
throw new IllegalArgumentException("Content-Length exceeds ContentCachingResponseWrapper's maximum (" +
142142
Integer.MAX_VALUE + "): " + len);
143143
}
144144
int lenInt = (int) len;

0 commit comments

Comments
 (0)