Change HTTP back to a 1.1 client.
authorRyan Dahl <ry@tinyclouds.org>
Mon, 26 Oct 2009 22:07:37 +0000 (23:07 +0100)
committerRyan Dahl <ry@tinyclouds.org>
Mon, 26 Oct 2009 22:07:37 +0000 (23:07 +0100)
This was modified in b893859c34f05db5c45f416949ebc0eee665cca6 even though it
wasn't really required. Some users are experiencing problems after changing
to 1.0 - once those are identified the client will returned to 1.0.

lib/http.js

index 0e66c67..50e6df5 100644 (file)
@@ -333,7 +333,7 @@ function ClientRequest (method, uri, headers) {
   }
   this.closeOnFinish = true;
 
-  this.sendHeaderLines(method + " " + uri + " HTTP/1.0\r\n", headers);
+  this.sendHeaderLines(method + " " + uri + " HTTP/1.1\r\n", headers);
 }
 node.inherits(ClientRequest, OutgoingMessage);