-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[HttpClient] Preserve the case of headers when sending them #32823
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
Conversation
What about |
@nicolas-grekas as you said here #32819 (comment)
So, could we leave headers as-is when using HTTP 1 (no strtolower, no ucwords, no changes whatsoever) and just apply |
Got it, see also comments on the linked issue. |
That is not possible, because the protocol can be decided automatically. |
c0ef6e6
to
3829d87
Compare
PR updated, ready. |
3829d87
to
9ac85d5
Compare
…m (nicolas-grekas) This PR was merged into the 4.3 branch. Discussion ---------- [HttpClient] Preserve the case of headers when sending them | Q | A | ------------- | --- | Branch? | 4.3 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #32819 | License | MIT | Doc PR | - Some hosts are case sensitive, let's present headers in the submitted form. Commits ------- 9ac85d5 [HttpClient] Preserve the case of headers when sending them
Some hosts are case sensitive, let's present headers in the submitted form.