2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-02 16:04:10 +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:
Matt Zabriskie
2015-09-21 16:44:06 -06:00
+2 -1
View File
@@ -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