Fix expect/continue keepalive

This commit is contained in:
Mark Nottingham 2010-10-18 16:14:29 +11:00 committed by Ryan Dahl
parent c735b4663a
commit b14eeb3c1e

View File

@ -653,7 +653,7 @@ ServerResponse.prototype.writeHead = function (statusCode) {
// 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.
if (this._expect_continue && ! this._sent100) {
this._shouldKeepAlive = false;
this.shouldKeepAlive = false;
}
this._storeHeader(statusLine, headers);