-
Notifications
You must be signed in to change notification settings - Fork 30.9k
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
Missing Http2ServerResponse.setHeaders()
fixed
#51576
base: main
Are you sure you want to change the base?
Conversation
Make it possible to invoke response.setHeaders() on response object from `node:http2` Fixes: nodejs#51573
Review requested:
|
Http2ServerResponse.setHeaders()
fixed
doc/api/http2.md
Outdated
`headers` must be an instance of [`Headers`][] or `Map`, | ||
if a header already exists in the to-be-sent headers, |
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.
`headers` must be an instance of [`Headers`][] or `Map`, | |
if a header already exists in the to-be-sent headers, | |
`headers` must be an instance of [`Headers`][] or `Map`. | |
If a header already exists in the to-be-sent headers, |
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.
Thanks for the feedback 🙌
Fixed here
Can you fix linting and the first commit message? |
This issue/PR was marked as stalled, it will be automatically closed in 30 days. If it should remain open, please leave a comment explaining why it should remain open. |
(waiting for action from author) |
Funny enough this PR's github action got stuck for some reasons and therefore stall action to close the PR never happened. Since this is an oz fellow, I reached out to him to see if he's still interested to continue his PR, if not I will manually close it. update: @Imperat replied to me and still interested to move the PR forward 👍 |
Hi @jakecastelli @mcollina Hi @mcollina
Do you have a link to a doc describing how should look the commit message? I did not find anything relevant in docs. |
Hi @Imperat, first commit message was referred to the project contributing commit guideline. In this PR, the subsystem should be Also, the project requires rebase than merge, would you mind rebasing instead of merging and squash your changes into a single commit before you fix the first commit message, if you need any help please let me know. |
FWIW #54425 |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #51576 +/- ##
==========================================
- Coverage 87.33% 87.32% -0.01%
==========================================
Files 648 648
Lines 182321 182340 +19
Branches 34971 34981 +10
==========================================
+ Hits 159222 159223 +1
- Misses 16374 16388 +14
- Partials 6725 6729 +4
|
This fixes missing
setHeaders
:Http2ServerResponse.setHeaders()
#51573