spring-cloud-netflix: Zuul not returning gzip responses correctly

When I hit one of my services that returns gzipped data but Zuul always return plain-text responses. At first I thought it was ignoring the Accept-Encoding header but it seems to be forwarding it correctly.

They’re both running on Spring Cloud: Camden.RELEASE

The configuration for the service includes:

  compression:
    enabled: true
    mime-types: application/json,application/xml,text/html,text/xml,text/plain,application/json;charset=UTF-8
    min-response-size: 64

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 27 (9 by maintainers)

Most upvoted comments

@ryanjbaxter i have upgraded to Dalston.SR5 and everything looks good. But we have issues in our AWS environment and we are not seeing the final response in the client side. Thank you for the needed help.