Open raju4392000 opened 5 years ago
To solve this problem I added a filter to force add content-encoding.
RequestContext ctx = RequestContext.getCurrentContext(); HttpServletRequest request = ctx.getRequest();
String receivedContentEncoding = request.getHeader(CONTENT_ENCODING_KEY);
if (StringUtils.isNotBlank(receivedContentEncoding)) { ctx.addZuulRequestHeader(CONTENT_ENCODING_KEY, receivedContentEncoding); }
Hello, Does anyone faced the below issue? we are using Netflix/ Zuul versions "com.netflix.zuul:zuul-core:1.3.1" "com.netflix.zuul:zuul-netflix:1.3.1"
When I hit a request from my service directly like shown below, it provides content-encoding header. curl “http://10.0.0.xxx:8080/myService/feature” -H "accept-encoding: deflate,gzip" -v
But, when I hit the same service via Zuul, it removes the content-encoding header. we need to ensure it doesn't remove
content-encoding
header.