From 03e6f4bf4c1eced613cf60d59ef50b0e18b31907 Mon Sep 17 00:00:00 2001 From: Michael Shin Date: Wed, 25 Dec 2019 12:55:36 -0800 Subject: [PATCH] Fixing invalid agent issue (#1904) --- lib/adapters/http.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/adapters/http.js b/lib/adapters/http.js index d163a2051d..16dad129d9 100755 --- a/lib/adapters/http.js +++ b/lib/adapters/http.js @@ -85,10 +85,7 @@ module.exports = function httpAdapter(config) { method: config.method.toUpperCase(), headers: headers, agent: agent, - agents: { - httpsAgent: config.httpsAgent, - httpAgent: config.httpAgent - }, + agents: { http: config.httpAgent, https: config.httpsAgent }, auth: auth };