mirror of
https://github.com/tenrok/axios.git
synced 2026-06-02 16:04:10 +03:00
allow passing an agent through to node http requests, closes #68
This commit is contained in:
@@ -52,7 +52,8 @@ module.exports = function httpAdapter(resolve, reject, config) {
|
||||
port: parsed.port,
|
||||
path: buildUrl(parsed.path, config.params).replace(/^\?/, ''),
|
||||
method: config.method,
|
||||
headers: headers
|
||||
headers: headers,
|
||||
agent: config.agent
|
||||
};
|
||||
|
||||
// Create the request
|
||||
|
||||
Reference in New Issue
Block a user