Merge branch '6.2.x'
This commit is contained in:
@@ -161,7 +161,13 @@ public class ContentCachingResponseWrapper extends HttpServletResponseWrapper {
|
||||
@Override
|
||||
public void setHeader(String name, String value) {
|
||||
if (HttpHeaders.CONTENT_LENGTH.equalsIgnoreCase(name)) {
|
||||
this.contentLength = toContentLengthInt(Long.parseLong(value));
|
||||
if (value != null) {
|
||||
this.contentLength = toContentLengthInt(Long.parseLong(value));
|
||||
}
|
||||
else {
|
||||
this.contentLength = null;
|
||||
super.setHeader(name, null);
|
||||
}
|
||||
}
|
||||
else {
|
||||
super.setHeader(name, value);
|
||||
|
||||
Reference in New Issue
Block a user