Fix expect/continue keepalive
authorMark Nottingham <mnot@mnot.net>
Mon, 18 Oct 2010 05:14:29 +0000 (16:14 +1100)
committerRyan Dahl <ry@tinyclouds.org>
Mon, 18 Oct 2010 22:38:46 +0000 (15:38 -0700)
lib/http.js

index 939d2c3..50bc6f1 100755 (executable)
@@ -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);