-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
fix(ext/node): add ServerResponse#appendHeader #24216
fix(ext/node): add ServerResponse#appendHeader #24216
Conversation
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
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.
This method is already defined in OutgoingMessage
class in _http_outgoing.ts
. I don't think we should add another one, but instead we should rewrite ServerResponse
to use ES5 classes and "mixin" both OutgoingMessage
and NodeWritable
@bartlomieju Their header handling is different unfortunately. |
@lucacasonato how so? If you look at |
Discussed offline, it's fine to land as is, I'm gonna rewrite this module after #24237 lands. Please address Luca's comments before landing. |
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!
Fixes #19993
Closes #16679