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:
committed by
Yasu Flores
parent
dc4bc49673
commit
03e6f4bf4c
@@ -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
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user