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
@ -413,10 +413,6 @@ HttpProxy.prototype.proxyRequest = function (req, res, options) {
|
||||
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);
|
||||
|
||||
// Open new HTTP request to internal resource with will act as a reverse proxy pass
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user