question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Headers are shown in all lowercase even if they were not

See original GitHub issue

Describe 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:

  1. Send a request to your request bin with a header for example curl -H "MIXEDcase: 1" your-bin-url
  2. Look at the headers as shown by the request bin UI
  3. 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:closed
  • Created 3 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
dylburgercommented, Mar 4, 2021

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.

0reactions
trembycommented, Mar 4, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found