-
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
http: writeHead if statusmessage is undefined dont override headers #46173
http: writeHead if statusmessage is undefined dont override headers #46173
Conversation
Review requested:
|
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.
looks good time. although, next time, I recommend separating refactoring and the actual task into 2 different commits, so it would be easier to differentiate (on a particularly large pull request), what the proposed solution is
60f9642
to
4759921
Compare
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
Landed in 6e375b3 |
PR-URL: nodejs#46173 Fixes: nodejs#32395 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Paolo Insogna <paolo@cowtech.it> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
fix: #32395
this PR avoids that when calling
res.writeHead(200, undefined, { 'x-foo': 'bar' });
the headers are ignored.