Skip to content
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

Fix issuse #1721 Accept-Encoding header is added twice #2139

Merged
merged 3 commits into from
Jul 28, 2023

Conversation

izdt
Copy link
Contributor

@izdt izdt commented Jul 26, 2023

Fix issuse #1721 "Accept-Encoding" header is added twice When feign.compression.response.enabled is set to true in configuration, feign adds "Accept-Encoding" header(s) when sending request. Currently, two header fields are added (Accept-Encoding: gzip and Accept-Encoding: deflate).
After fix, "Accept-Encoding" value is "gzip, deflate".

@velo
Copy link
Member

velo commented Jul 28, 2023

Is it valid to have duplicated headers?!

The server would need to combine it anyway right, maybe we should combine them all

@velo velo merged commit ba009a0 into OpenFeign:master Jul 28, 2023
@izdt
Copy link
Contributor Author

izdt commented Aug 8, 2023

Is it valid to have duplicated headers?!

The server would need to combine it anyway right, maybe we should combine them all

Proxy may ignore one of the duplicated headers, then it is not valid. According to rfc7230 section 3.2.2, mentioned at #2139, combine them to one is better.

@izdt izdt deleted the izdt-patch-1 branch August 22, 2023 03:34
velo pushed a commit that referenced this pull request Oct 7, 2024
* Fix issuse #1721 Accept-Encoding header is added twice

* format core code
velo pushed a commit that referenced this pull request Oct 8, 2024
* Fix issuse #1721 Accept-Encoding header is added twice

* format core code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants