You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This changes the behavior for http to send send a Content-Length header
instead of using chunked encoding when we know the size of the body when
sending the headers.
Fixes: nodejs#1044
PR-URL: nodejs#1062
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: Rod Vagg <[email protected]>
Reviewed-By: Brian White <[email protected]>
I propose we make http set the
Content-Length
header when the user does only callOutgoingMessage.prototype.end
and notwrite
orwriteHead
.Eg.
It is a trivial change in
lib/
, but breaks a lot of tests.The text was updated successfully, but these errors were encountered: