Fix expect/continue keepalive
This commit is contained in:
parent
c735b4663a
commit
b14eeb3c1e
@ -653,7 +653,7 @@ ServerResponse.prototype.writeHead = function (statusCode) {
|
|||||||
// don't keep alive connections where the client expects 100 Continue
|
// don't keep alive connections where the client expects 100 Continue
|
||||||
// but we sent a final status; they may put extra bytes on the wire.
|
// but we sent a final status; they may put extra bytes on the wire.
|
||||||
if (this._expect_continue && ! this._sent100) {
|
if (this._expect_continue && ! this._sent100) {
|
||||||
this._shouldKeepAlive = false;
|
this.shouldKeepAlive = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
this._storeHeader(statusLine, headers);
|
this._storeHeader(statusLine, headers);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user