Skip to content

Commit 8284afb

Browse files
committed
fixup
1 parent 21e15c1 commit 8284afb

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

‎lib/_http_outgoing.js‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1103,8 +1103,11 @@ OutgoingMessage.prototype.end = function end(chunk, encoding, callback){
11031103
this.socket._writableState.corked=1;
11041104
this.socket.uncork();
11051105
}
1106-
this[kCorked]=1;
1107-
this.uncork();
1106+
1107+
if(this[kCorked]){
1108+
this[kCorked]=1;
1109+
this.uncork();
1110+
}
11081111

11091112
this.finished=true;
11101113

0 commit comments

Comments
(0)