Skip to content
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

Closed
wants to merge 5 commits into from

Conversation

rexagod
Copy link
Member

@rexagod rexagod commented May 1, 2020

refactor getHeaders to initialize headers using
Object.create(null)

Refs: #29829

fixup: lint

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

refactor `getHeaders` to initialize headers using
`Object.create(null)`

Refs: nodejs#29829

fixup: lint
@nodejs-github-bot nodejs-github-bot added the http2 Issues or PRs related to the http2 subsystem. label May 1, 2020
@rexagod rexagod changed the title http2: use Object.create(null) for getHeaders http2: [compat api] use Object.create(null) for getHeaders May 1, 2020
@nodejs-github-bot
Copy link
Collaborator

@BridgeAR
Copy link
Member

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.

Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, yes.

@BridgeAR BridgeAR added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label May 24, 2020
@nodejs-github-bot
Copy link
Collaborator

@mcollina
Copy link
Member

mcollina commented May 29, 2020

Landed in c095808

@mcollina mcollina closed this May 29, 2020
mcollina pushed a commit to mcollina/node that referenced this pull request May 29, 2020
refactor `getHeaders` to initialize headers using
`Object.create(null)`

Refs: nodejs#29829

PR-URL: nodejs#33188
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Sebastiaan Deckers <sebdeckers83@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
@mcollina
Copy link
Member

For some reasons I did not fully understand I messed up landing this with git node land and it did not push the amended commit. I force pushed to master.

codebytere pushed a commit that referenced this pull request Jun 18, 2020
refactor `getHeaders` to initialize headers using
`Object.create(null)`

Refs: #29829

PR-URL: #33188
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Sebastiaan Deckers <sebdeckers83@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
@codebytere codebytere mentioned this pull request Jun 28, 2020
codebytere pushed a commit that referenced this pull request Jun 30, 2020
refactor `getHeaders` to initialize headers using
`Object.create(null)`

Refs: #29829

PR-URL: #33188
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Sebastiaan Deckers <sebdeckers83@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
codebytere pushed a commit that referenced this pull request Jul 8, 2020
refactor `getHeaders` to initialize headers using
`Object.create(null)`

Refs: #29829

PR-URL: #33188
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Sebastiaan Deckers <sebdeckers83@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
@codebytere codebytere mentioned this pull request Jul 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
author ready PRs that have at least one approval, no pending requests for changes, and a CI started. http2 Issues or PRs related to the http2 subsystem.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants