-
-
Notifications
You must be signed in to change notification settings - Fork 82
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
Support headers in ALL_CAPS_WITH_UNDERSCORES
#88
Comments
Looking at this further, I'd argue that if a header can't be parsed it should either cause a response indicating that occurred, or the header should be ignored. The HTTP spec while not entirely clear on header naming standards, is very clear that the boundary between headers and body is a line containing only |
Can you submit a failing test case? (e.g. a spec that fails) |
Maybe it should go into |
This Sinatra application shows the behaviour described:
When I use a telnet session to send the following request I immediately get a response on sending the capitalised header:
|
This should be working with the latest release, can you please check? |
I have confirmed this is now working. |
In investigating #86 I encountered a second issue, whereby any headers after one we send which is in caps with underscores were being dropped.
Firstly, I know its not really compliant with de-facto HTTP standards, where all headers are capitalised with dashes between them, but it is a thing that exists and I can't find anything in the HTTP standard which explicitly says it isn't supported.
I'm quite happy to resolve this issue myself if you can give a pointer to either the right place (in which case I'll submit a PR), or the HTTP standard that says it shouldn't be supported (in which case I'll go away and fix our code).
The text was updated successfully, but these errors were encountered: