Commit 1090f281 by Spencer Gibb

Upgrade zuul to v1.1.0

fixes gh-591
parent d23a57d1
......@@ -31,7 +31,7 @@
<hystrix.version>1.4.20</hystrix.version>
<ribbon.version>2.1.0</ribbon.version>
<servo.version>0.10.0</servo.version>
<zuul.version>1.1.0-rc.1</zuul.version>
<zuul.version>1.1.0</zuul.version>
<rxjava.version>1.0.14</rxjava.version>
<java.version>1.7</java.version>
<turbine.version>1.0.0</turbine.version>
......
......@@ -184,12 +184,12 @@ public class SendResponseFilter extends ZuulFilter {
}
}
RequestContext ctx = RequestContext.getCurrentContext();
Integer contentLength = ctx.getOriginContentLength();
Long contentLength = ctx.getOriginContentLength();
// Only inserts Content-Length if origin provides it and origin response is not
// gzipped
if (SET_CONTENT_LENGTH.get()) {
if (contentLength != null && !ctx.getResponseGZipped()) {
servletResponse.setContentLength(contentLength);
servletResponse.setContentLength(contentLength.intValue());
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment