Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
ronag committed Oct 12, 2023
1 parent 21e15c1 commit 8284afb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/_http_outgoing.js
Original file line number Diff line number Diff line change
Expand Up @@ -1103,8 +1103,11 @@ OutgoingMessage.prototype.end = function end(chunk, encoding, callback) {
this.socket._writableState.corked = 1;
this.socket.uncork();
}
this[kCorked] = 1;
this.uncork();

if (this[kCorked]) {
this[kCorked] = 1;
this.uncork();
}

this.finished = true;

Expand Down

0 comments on commit 8284afb

Please sign in to comment.