Commit 604ed287 authored by Dominic Tarr's avatar Dominic Tarr

Merge branch 'patch-1' of https://github.com/KimSchneider/node-http-proxy

closes #80
Conflicts:
	lib/node-http-proxy.js
parents e6ff8d65 2caa5d2b
...@@ -59,11 +59,12 @@ function _getAgent (host, port, secure) { ...@@ -59,11 +59,12 @@ function _getAgent (host, port, secure) {
if (!_agents[id]) { if (!_agents[id]) {
Agent = secure ? https.Agent : http.Agent; Agent = secure ? https.Agent : http.Agent;
_agents[id] = new Agent({ _agents[id] = new Agent({
host: host, host: host,
port: port, port: port
maxSockets: maxSockets
}); });
_agents[id].maxSockets = maxSockets;
} }
return _agents[id]; return _agents[id];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment