-
Notifications
You must be signed in to change notification settings - Fork 31k
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: #45508 Fixes: #36721 Reviewed-By: Robert Nagy <[email protected]> Reviewed-By: Paolo Insogna <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Matteo Collina <[email protected]>
PR-URL: nodejs#45508 Fixes: nodejs#36721 Reviewed-By: Robert Nagy <[email protected]> Reviewed-By: Paolo Insogna <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Matteo Collina <[email protected]>
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: