From 71e64cf728109662accbdd2ce432e2679db76bd7 Mon Sep 17 00:00:00 2001 From: Marc Hassan Date: Tue, 12 Nov 2019 23:45:24 -0500 Subject: [PATCH] Correctly pass agents to follow-redirects --- lib/adapters/http.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/adapters/http.js b/lib/adapters/http.js index d163a2051d..3351545d71 100755 --- a/lib/adapters/http.js +++ b/lib/adapters/http.js @@ -86,8 +86,8 @@ module.exports = function httpAdapter(config) { headers: headers, agent: agent, agents: { - httpsAgent: config.httpsAgent, - httpAgent: config.httpAgent + https: config.httpsAgent, + http: config.httpAgent }, auth: auth };