Skip to content

Conversation

@adarsh2397
Copy link
Contributor

@adarsh2397 adarsh2397 commented Oct 9, 2017

Remove undefined reference variable 'common' from http2 API

Checklist
Affected core subsystem(s)

doc

Fixes: #16068

Remove undefined reference variable 'common' from http2 API
@nodejs-github-bot nodejs-github-bot added doc Issues and PRs related to the documentations. http2 Issues or PRs related to the http2 subsystem. labels Oct 9, 2017
doc/api/http2.md Outdated

req.on('response', common.mustCall());
req.on('response', (headers) => {
console.log(headers[':status']);
Copy link
Member

Choose a reason for hiding this comment

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

Would be great if this is headers[http2.constants.HTTP2_HEADER_STATUS]

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hey, thanks for the review. I just made the necessary changes to the line.

Replaced `headers[':status']` with `headers[http2.constants.HTTP2_HEADER_STATUS]`
@joyeecheung
Copy link
Member

@joyeecheung
Copy link
Member

Oops, this is a doc change, doesn't need CI.

@joyeecheung
Copy link
Member

Landed in a84e10e, thanks!

joyeecheung pushed a commit that referenced this pull request Oct 12, 2017
Remove undefined reference variable 'common' from http2 API

PR-URL: #16106
Fixes: #16068
Reviewed-By: Joyee Cheung <[email protected]>
Reviewed-By: James M Snell <[email protected]>
addaleax pushed a commit to ayojs/ayo that referenced this pull request Oct 15, 2017
Remove undefined reference variable 'common' from http2 API

PR-URL: nodejs/node#16106
Fixes: nodejs/node#16068
Reviewed-By: Joyee Cheung <[email protected]>
Reviewed-By: James M Snell <[email protected]>
targos pushed a commit that referenced this pull request Oct 18, 2017
Remove undefined reference variable 'common' from http2 API

PR-URL: #16106
Fixes: #16068
Reviewed-By: Joyee Cheung <[email protected]>
Reviewed-By: James M Snell <[email protected]>
targos pushed a commit that referenced this pull request Oct 18, 2017
Remove undefined reference variable 'common' from http2 API

PR-URL: #16106
Fixes: #16068
Reviewed-By: Joyee Cheung <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc Issues and PRs related to the documentations. http2 Issues or PRs related to the http2 subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants