2
0
mirror of https://github.com/tenrok/axios.git synced 2026-05-24 14:04:14 +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(),
headers: headers,
agent: agent,
agents: {
httpsAgent: config.httpsAgent,
httpAgent: config.httpAgent
},
agents: { http: config.httpAgent, https: config.httpsAgent },
auth: auth
};