From a86d18bc7f93d013df715d1f4d88e651846f645d Mon Sep 17 00:00:00 2001 From: indexzero Date: Sat, 21 May 2011 10:41:51 -0400 Subject: [PATCH] [fix] Dont force `Connection: close` now that Keep-Alive is supported --- lib/node-http-proxy.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/node-http-proxy.js b/lib/node-http-proxy.js index 2240be9..ab836be 100644 --- a/lib/node-http-proxy.js +++ b/lib/node-http-proxy.js @@ -412,10 +412,6 @@ HttpProxy.prototype.proxyRequest = function (req, res, options) { path: req.url, headers: req.headers }; - - // Force the `connection` header to be 'close' until - // node.js core re-implements 'keep-alive'. - outgoing.headers['connection'] = 'close'; protocol = _getProtocol(options.https || this.target.https, outgoing);