-
Notifications
You must be signed in to change notification settings - Fork 30.3k
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: calling ServerResponse.writeHead multiple times? #36721
Comments
Another potential problem with |
It seems to be documented here and also under under response.getHeader
|
PR-URL: nodejs#45508 Fixes: nodejs#36721 Reviewed-By: Robert Nagy <ronagy@icloud.com> Reviewed-By: Paolo Insogna <paolo@cowtech.it> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Looking through the code it seems a bit undefined what happens if
writeHead
is called multiple times. Especially in the case where the headers have already been sent. I would expect at least the former to error but that does not seem to be the case.The text was updated successfully, but these errors were encountered: