Allow Content-Length header with values greater than 2 GB (#1320)
fixes gh-1319
This commit is contained in:
committed by
Spencer Gibb
parent
4f81255970
commit
d9efb0a84d
@@ -211,7 +211,7 @@ public class SendResponseFilter extends ZuulFilter {
|
||||
// gzipped
|
||||
if (SET_CONTENT_LENGTH.get()) {
|
||||
if (contentLength != null && !ctx.getResponseGZipped()) {
|
||||
servletResponse.setContentLength(contentLength.intValue());
|
||||
servletResponse.setContentLengthLong(contentLength);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user