mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-24 07:39:09 +00:00
Prior to this commit, gh-35225 introduced HTTP response body decompression support for "gzip" and "deflate" encodings for the `JdkClientHttpRequestFactory`. While body decompression works, the client keeps the "Content-Encoding" and "Content-Length" response headers intact, which misleads further response handling: the body size has changed and it is not compressed anymore. This commit ensures that the relevant response headers are removed from the HTTP response after decompression. Fixes gh-35668