提交 2a6d7c2a 编写于 作者: M Matt Zabriskie

Merge pull request #102 from nlf/master

allow passing an agent through to node http requests, closes #68
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册