Skip to content

Commit

Permalink
Fixing useHttps without proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
zcei committed Jun 16, 2017
1 parent b2c7cb4 commit 486c956
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/adapters/http.js
Expand Up @@ -118,7 +118,7 @@ module.exports = function httpAdapter(config) {
}

var transport;
var useHttps = isHttps && proxy.isHttps;
var useHttps = isHttps && (proxy ? proxy.isHttps : true);
if (config.maxRedirects === 0) {
transport = useHttps ? https : http;
} else {
Expand Down

0 comments on commit 486c956

Please sign in to comment.