Permalink
Browse files

transports: remove `Connection` headers and let node handle it (fixes #…

  • Loading branch information...
1 parent 5fc9785 commit 13e06795ac5e817d9aaba5d71d608e518076a7b6 @rauchg rauchg committed Nov 4, 2012
Showing with 0 additions and 10 deletions.
  1. +0 −5 lib/transports/polling-jsonp.js
  2. +0 −5 lib/transports/polling-xhr.js
@@ -69,11 +69,6 @@ JSONP.prototype.doWrite = function (data) {
, 'Content-Length': Buffer.byteLength(data)
};
- // Keep-Alive is the default in HTTP 1.1
- if ('1.1' != this.req.httpVersion) {
- headers.Connection = 'Keep-Alive';
- }
-
this.res.writeHead(200, this.headers(this.req, headers));
this.res.end(data);
};
@@ -41,11 +41,6 @@ XHR.prototype.doWrite = function (data) {
, 'Content-Length': Buffer.byteLength(data)
};
- // Keep-Alive is the default in HTTP 1.1
- if ('1.1' != this.req.httpVersion) {
- headers.Connection = 'Keep-Alive';
- }
-
this.res.writeHead(200, this.headers(this.req, headers));
this.res.end(data);
};

0 comments on commit 13e0679

Please sign in to comment.