-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
HTTP headers case gets modified #466
Comments
Hi,
golang std library transforms them in a canonical way golang/go#5022. |
Thank you for the amazingly quick response. Unfortunately this is not an option at this time for these legacy applications. |
Reopening this old issue, as we might discuss a way to disable this behavior. |
There is the classic way to dodge this behavior, by setting headers via map, so the key case is preserved ;) its old, and may not work forever, but it is doable 😝 |
This comment has been minimized.
This comment has been minimized.
Copied from my own comment at #466 (comment) :
There is literally no reason for modification of this behavior to be resisted by this team. |
@emilevauge Are there any updates on this issue? I unfortunately can no longer use Traefik due to the header casing manipulation. (Regardless of what the RFC says) |
I have the same issue too with a client that cannot be modified due a critical environment! |
-previous comment deleted. Logged in wrong project- But I totally agree about header preservation! |
Small reminder:
|
Yes, but unfortunately, this is one of those areas where "what the standard says" and "what many people have come to rely on" are not the same thing. |
Bump for updates. We can no longer use Traefik due to this issue. |
Feel free to also comment here: golang/go#37834 It's a thread to ask the Go team to either offer a workaround, or accept one developed by the community. Hopefully, if there's enough activity on that thread, they'll say yes ;-) FYI, I'm not aware of any other viable answer to the problem. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Please do not modify headers that pass through a proxy - this is bad-by-design. It should be transparent. |
one more use case for you for not doing unnecessary conversions: old Outlook clients can't talk to Exchange via Traefik; only newest ones work |
Thanks for everyone that participated in the discussions so far. As of now, we are not going to change the way we handle headers. We've put a lot of thought into it and here is why we think this is the right decision:
We are going to close this issue, should Go provide a solution, please feel free to open a new one. |
When sending a custom header through traefik, it gets recased causing the application to fail.
Is there a way to disable any re-casing?
Repro step:
curl using a cusom header
TCPDUMP on the other side to see
Note this happens on the way back as well if I set a header in all caps it comes back camel-cased
The text was updated successfully, but these errors were encountered: