Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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