-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Option to preserve header's title case #2313
Comments
As always, I've suggest filing a bug with the thing that expects a certain casing, since in HTTP/1 header casing is defined as case-insensitive, and in HTTP2 and 3, it's forced to lowercase. So the Switch is definitely wrong here. That said, I realize it's not always controllable, and so I'm exploring providing support in the C API for curl, and it might be possible to expose it as part of Rust's API as well... So far, my idea is to include an extra type in the request |
Isn't there now code to do that behind the |
There is indeed code in hyper now, currently behind the |
…#2313) The feature is now supported in both the server and the client and can be combined with the title case feature, for headers which don't have entries in the header case map.
…#2313) The feature is now supported in both the server and the client and can be combined with the title case feature, for headers which don't have entries in the header case map.
…#2313) The feature is now supported in both the server and the client and can be combined with the title case feature, for headers which don't have entries in the header case map.
…#2313) The feature is now supported in both the server and the client and can be combined with the title case feature, for headers which don't have entries in the header case map.
…#2313) The feature is now supported in both the server and the client and can be combined with the title case feature, for headers which don't have entries in the header case map.
…#2313) The feature is now supported in both the server and the client and can be combined with the title case feature, for headers which don't have entries in the header case map.
PR: #2480 |
…#2313) The feature is now supported in both the server and the client and can be combined with the title case feature, for headers which don't have entries in the header case map.
…#2313) The feature is now supported in both the server and the client and can be combined with the title case feature, for headers which don't have entries in the header case map.
…#2313) The feature is now supported in both the server and the client and can be combined with the title case feature, for headers which don't have entries in the header case map.
…#2313) The feature is now supported in both the server and the client and can be combined with the title case feature, for headers which don't have entries in the header case map.
…#2313) The feature is now supported in both the server and the client and can be combined with the title case feature, for headers which don't have entries in the header case map.
…#2313) The feature is now supported in both the server and the client and can be combined with the title case feature, for headers which don't have entries in the header case map.
…#2313) The feature is now supported in both the server and the client and can be combined with the title case feature, for headers which don't have entries in the header case map.
…#2313) The feature is now supported in both the server and the client and can be combined with the title case feature, for headers which don't have entries in the header case map.
…#2313) The feature is now supported in both the server and the client and can be combined with the title case feature, for headers which don't have entries in the header case map.
…#2313) The feature is now supported in both the server and the client and can be combined with the title case feature, for headers which don't have entries in the header case map.
…#2313) The feature is now supported in both the server and the client and can be combined with the title case feature, for headers which don't have entries in the header case map.
…#2313) The feature is now supported in both the server and the client and can be combined with the title case feature, for headers which don't have entries in the header case map.
…#2313) The feature is now supported in both the server and the client and can be combined with the title case feature, for headers which don't have entries in the header case map.
Decouple preserving header case from FFI: The feature is now supported in both the server and the client and can be combined with the title case feature, for headers which don't have entries in the header case map. Closes hyperium#2313
I am building a HTTP proxy with hyper, and I realize that headers are all converted to lower case for HTTP/1.x.
There was an issue about adding
http1_title_case_headers
for clients: #1492 , but we don't have a way to preserve the response headers' title case from remote servers.Some client applications are expecting to receive header with name that is exactly the same as the server returns, for example:
http://ctest.cdn.nintendo.net/
and expecting a response with headerX-Organization: Nintendo
.The text was updated successfully, but these errors were encountered: