-
-
Notifications
You must be signed in to change notification settings - Fork 376
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
HTTP Header Normalizer Middleware #89
Conversation
Codecov Report
@@ Coverage Diff @@
## master #89 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 12 13 +1
Lines 199 221 +22
Branches 41 43 +2
=====================================
+ Hits 199 221 +22
Continue to review full report at Codecov.
|
## [httpHeaderNormalizer](/src/middlewares/httpHeaderNormalizer.js) | ||
|
||
Normalizes HTTP header names to their canonical format. Very useful if clients are | ||
not using the canonical names of header (e.g. `content-type` as opposed to `Content-Type`). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we mention middleware adds rawHeaders
property?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very good point, i will do that as well
missing headers from wikipedia:
missing from iana.org:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good work @lmammino , as always. Just need to update exception list, as discussed, rest of it is brilliant
TODO:
Closes #87