Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
ronag committed Dec 28, 2020
1 parent 4cc48de commit 3947f0e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/_http_outgoing.js
Original file line number Diff line number Diff line change
Expand Up @@ -833,6 +833,10 @@ OutgoingMessage.prototype.end = function end(chunk, encoding, callback) {
}
return this;
} else if (!this._header) {
if (this.socket) {
this.socket.cork();
}

this._contentLength = 0;
this._implicitHeader();
}
Expand Down

0 comments on commit 3947f0e

Please sign in to comment.