提交 fbb5d4d0 编写于 作者: N Nick Uraltsev 提交者: GitHub

Merge pull request #1080 from MarshallOfSound/patch-1

Allow overriding the used transport
......@@ -117,7 +117,9 @@ module.exports = function httpAdapter(config) {
}
var transport;
if (config.maxRedirects === 0) {
if (config.transport) {
transport = config.transport;
} else if (config.maxRedirects === 0) {
transport = isHttps ? https : http;
} else {
if (config.maxRedirects) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册