mirror of
https://github.com/http-party/node-http-proxy.git
synced 2025-12-08 20:59:18 +00:00
Merge branch 'patch-1' of https://github.com/KimSchneider/node-http-proxy
closes #80 Conflicts: lib/node-http-proxy.js
This commit is contained in:
commit
604ed2878d
@ -59,11 +59,12 @@ function _getAgent (host, port, secure) {
|
||||
if (!_agents[id]) {
|
||||
Agent = secure ? https.Agent : http.Agent;
|
||||
|
||||
_agents[id] = new Agent({
|
||||
host: host,
|
||||
port: port,
|
||||
maxSockets: maxSockets
|
||||
_agents[id] = new Agent({
|
||||
host: host,
|
||||
port: port
|
||||
});
|
||||
|
||||
_agents[id].maxSockets = maxSockets;
|
||||
}
|
||||
|
||||
return _agents[id];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user