Browse Source

Fix expect/continue keepalive

v0.7.4-release
Mark Nottingham 14 years ago
committed by Ryan Dahl
parent
commit
b14eeb3c1e
  1. 2
      lib/http.js

2
lib/http.js

@ -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…
Cancel
Save