[BUG] Headers are shown in all lowercase even if they were not
See original GitHub issueDescribe the bug If I send a request to the request bin with an upper or mixed case header it shows up in the interface as all lowercase.
To Reproduce Steps to reproduce the behavior:
- Send a request to your request bin with a header for example
curl -H "MIXEDcase: 1" your-bin-url
- Look at the headers as shown by the request bin UI
- See that it appears as
mixedcase: 1
Expected behavior It should show the headers exactly as they were sent.
Additional context
I do recognize that according to the HTTP spec headers are meant to be case-insensitive. But this does not mean that all systems treat them that way. For example, AWS Lambda Proxy Integration provides the headers in a case-sensitive dictionary at event.headers
without normalizing their case. Pipedream can therefore lead me astray when I’m inspecting requests.
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
Header names are converted to lower case #6394 - GitHub
Describe the bug When sending requests with (custom) HTTP headers, all (custom and non-custom) header names are converted to lower case!
Read more >headers are converted to lowercase, but not capitalized
Bug 480179 - headers are converted to lowercase, but not capitalized ... Hi, is this still an issue that we should pursue upstream...
Read more >Server response headers are all lowercase except X-Firefox ...
Recently, I was trying to debug a new server config, and saw that the header I set was mysteriously getting lower cased. Suspecting...
Read more >Are HTTP headers case-sensitive? - Stack Overflow
I just got a comment on that post saying that content-type needs to be capitalized, Content-type . Is this correct? It seems to...
Read more >How to preserve header case in an outbound HTTP request
Headers set in the HTTP request operation are sent as all lower-case regardless of the values set in the operation. For example, the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes, we also operate requestbin.com, but the core of our development work is done on pipedream.com. We don’t operate an issue tracker for RequestBin, but I noted it internally.
I didn’t realize they were two different things – logo on the site I was using says Pipedream. I only heard of it via a link in these docs. (This is the first 3rd-party service, not the one I’m adding support for.)
I’ll believe you that the bug doesn’t exist in the software you thought I was using. Sorry for posting in the wrong place. It sounds like the two pieces of software are related though – is there an issue tracker for requestbin.com? I couldn’t see any contact information or links to support or feedback or a repo at all on that site.