2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-17 19:21:29 +03:00

Fixing invalid agent issue (#1904)

This commit is contained in:
Michael Shin
2019-12-25 12:55:36 -08:00
committed by Yasu Flores
parent dc4bc49673
commit 03e6f4bf4c
+1 -4
View File
@@ -85,10 +85,7 @@ module.exports = function httpAdapter(config) {
method: config.method.toUpperCase(), method: config.method.toUpperCase(),
headers: headers, headers: headers,
agent: agent, agent: agent,
agents: { agents: { http: config.httpAgent, https: config.httpsAgent },
httpsAgent: config.httpsAgent,
httpAgent: config.httpAgent
},
auth: auth auth: auth
}; };