-
Notifications
You must be signed in to change notification settings - Fork 2
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
Update req #3
Update req #3
Conversation
Hi @wojtekmach, I am trying to test out the updated req and the config option Using |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The legacy config is compile-time so unfortunately you won't be able to test both when it is enabled and when it is disabled. My suggestion is to not enable it on your projects. The transition is rough but I think ultimately worth it, I think the map semantics are much nicer here. However, if headers being maps are a deal breaker, i.e. not just a matter of updating the code but it breaks contracts with things outside of your control, please let us know.
FYI some servers, even thought it is against spec, requires headers to be in particular case (we now downcase) and particular order (which we no longer have with maps) so I am planning to leave an escape hatch open and it might be to allow keeping headers as lists to keep order. I haven't thought this through but it might be that instead of headers be a |
I'm trying to force the change in config.exs, but that config test is still failing. I agree about updating the headers everywhere. Hopefully we don't have any services downstream that care about header casing, though there's probably an AWS service that does. 😀 |
UPDATE: I cleaned req and then recompiled and that got the update applied. |
Yeah I forgot to mention you need to recompile deps after changing compile-time configs. I believe on Elixir 1.16 that will no longer be necessary, that is, the compiler will know it needs to recompile. |
f8d3eef
to
08f0fb0
Compare
08f0fb0
to
226cba1
Compare
Test the :legacy_headers_as_lists config.