Skip to content

Commit

Permalink
Fixing invalid agent issue (#1904)
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Shin authored and yasuf committed Dec 25, 2019
1 parent dc4bc49 commit 03e6f4b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/adapters/http.js
Expand Up @@ -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
};

Expand Down

0 comments on commit 03e6f4b

Please sign in to comment.