2
0
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:
Nathan LaFreniere
2015-08-05 12:13:16 -07:00
parent 8c1694e821
commit 11c0b0aa10
+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