mirror of
https://github.com/tenrok/axios.git
synced 2026-06-20 20:00:40 +03:00
Merge pull request #102 from nlf/master
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,
|
port: parsed.port,
|
||||||
path: buildUrl(parsed.path, config.params).replace(/^\?/, ''),
|
path: buildUrl(parsed.path, config.params).replace(/^\?/, ''),
|
||||||
method: config.method,
|
method: config.method,
|
||||||
headers: headers
|
headers: headers,
|
||||||
|
agent: config.agent
|
||||||
};
|
};
|
||||||
|
|
||||||
// Create the request
|
// Create the request
|
||||||
|
|||||||
Reference in New Issue
Block a user