New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
spring.server.compression conflict with feign.compression #145
Comments
@Flamingo93 As you can read the documentation and the javadocs in You can decode the response in your client app on your own, for example, using As a side note, I would encourage you to upgrade your dependencies (Spring Boot 1.4.x is no longer supported and we'll be ending the support for Spring Cloud Edgware Release train in 3 months) and to using the dependency management plugin with the release train name rather than manually specifying Spring Cloud dependencies versions (you can generate a correct pom for the required versions at start.spring.io. |
@OlgaMaciaszek Thanks for your reply. Your explaination is good, but I still has some question. This is my thought: |
Hello, |
We can enable GZip compression in Spring Boot by
We also can enable the request or response GZIP compression for ourFeign requests by
When we config
server.compression.enabled=true
in server-side andfeign.compression.response.enabled=true
at the same time. There will be something wrong:The server can handle the request as normal, but the client recieve wrong response.
There is an example in my github to reproduce the problem.
Reproduce problem steps:
Phenomenon:
server.compression.enabled=true
in server-side andfeign.compression.response.enabled=true
in client-side at the same time, we will get garbled, like ".)��KWH+��U(N-*K-�".The text was updated successfully, but these errors were encountered: