mirror of
https://github.com/http-party/node-http-proxy.git
synced 2025-12-08 20:59:18 +00:00
[fix] Dont force Connection: close now that Keep-Alive is supported
This commit is contained in:
parent
6fd272ac18
commit
a86d18bc7f
@ -412,10 +412,6 @@ HttpProxy.prototype.proxyRequest = function (req, res, options) {
|
|||||||
path: req.url,
|
path: req.url,
|
||||||
headers: req.headers
|
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);
|
protocol = _getProtocol(options.https || this.target.https, outgoing);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user