Skip to content
This repository was archived by the owner on Apr 22, 2023. It is now read-only.

HTTP Headers are converted to lowercase #8502

Closed
murer opened this issue Oct 3, 2014 · 3 comments
Closed

HTTP Headers are converted to lowercase #8502

murer opened this issue Oct 3, 2014 · 3 comments

Comments

@murer
Copy link

murer commented Oct 3, 2014

I know http spec says headers is case-insensitive, but I'm implementing a transparent proxy.
And as far as I know, some headers should not be modified by proxy.

http://tools.ietf.org/html/rfc2616
13.5.2 Non-modifiable Headers

Some features of the HTTP/1.1 protocol, such as Digest
Authentication, depend on the value of certain end-to-end headers. A
transparent proxy SHOULD NOT modify an end-to-end header unless the
definition of that header requires or specifically allows that.

It should be nice if I could retrieve original headers using http module because it does lots of hard work over sockets.

@dougwilson
Copy link
Member

Use rawHeaders property added in 0.11: http://nodejs.org/docs/v0.11.14/api/http.html#http_message_rawheaders

@murer
Copy link
Author

murer commented Oct 3, 2014

Fast and precise.

Thank you

@misterdjules
Copy link

Thank you @dougwilson.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants