We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Agent
1 parent e925e49 commit eafdc74Copy full SHA for eafdc74
lib/node-http-proxy.js
@@ -352,12 +352,7 @@ exports._getAgent = function _getAgent (options) {
352
var Agent = options.https ? https.Agent : http.Agent,
353
agent;
354
355
- agent = new Agent({
356
- host: options.host,
357
- port: options.port
358
- });
359
-
360
- agent.maxSockets = options.maxSockets || maxSockets;
+ agent = new Agent(options);
361
362
return agent;
363
}
@@ -392,4 +387,4 @@ exports._getBase = function _getBase (options) {
392
387
393
388
394
389
return result;
395
-};
390
+};
0 commit comments