Open
Description
Context
I am consuming a API that have case sensitive header keys.
It is not common to see an case-sensitive header and also is off the specification. But sometimes it is off our control.
What I have in mind is some config to making possible to prevent the capitalize behavior and pass the header without changing it. Something like this:
http = Net::HTTP.new(endpoint.host, endpoint.port)
http.preserve_headers = true
The default behavior will remain the same, the idea is only change the behavior if this config are true.
Some workaround I can do is making a monkeypath to prevent the capitalization, but I thing it make sense to have this configuration.
I can try to implement it, but I want to know if make sense for Net::HTTP.
Metadata
Metadata
Assignees
Labels
No labels