-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
http2: [compat api] use Object.create(null)
for getHeaders
#33188
Conversation
refactor `getHeaders` to initialize headers using `Object.create(null)` Refs: nodejs#29829 fixup: lint
Object.create(null)
for getHeaders
Object.create(null)
for getHeaders
This seems like a patch due to only applying to the compat mode and to align it with the former behavior. @nodejs/http @nodejs/http2 it would be great to get confirmation for that. |
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.
lgtm, yes.
Landed in c095808 |
refactor `getHeaders` to initialize headers using `Object.create(null)` Refs: nodejs#29829 PR-URL: nodejs#33188 Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Sebastiaan Deckers <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
For some reasons I did not fully understand I messed up landing this with |
refactor `getHeaders` to initialize headers using `Object.create(null)` Refs: #29829 PR-URL: #33188 Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Sebastiaan Deckers <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
refactor `getHeaders` to initialize headers using `Object.create(null)` Refs: #29829 PR-URL: #33188 Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Sebastiaan Deckers <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
refactor `getHeaders` to initialize headers using `Object.create(null)` Refs: #29829 PR-URL: #33188 Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Sebastiaan Deckers <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
refactor
getHeaders
to initialize headers usingObject.create(null)
Refs: #29829
fixup: lint
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes