Created
June 11, 2014 20:46
-
-
Save zaach/0a3e920736daf5b7118b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/lookup.js b/lib/lookup.js | |
index c6e967d..7192e5e 100644 | |
--- a/lib/lookup.js | |
+++ b/lib/lookup.js | |
@@ -19,7 +19,7 @@ const DEFAULT_PORTS = { | |
// like https.get() but transparently supports the | |
// $https_proxy and $no_proxy environment variables. | |
var getWithTransparentProxying = function(options, cb) { | |
- var httpmod = https; | |
+ var httpmod = http; | |
var proxy = shouldUseProxy(options.host); | |
if (proxy) { | |
if (proxy.scheme === 'http') { | |
@@ -115,7 +115,7 @@ var fetchWellKnown = function (emitter, args, currentDomain, principalDomain, cl | |
if (args.httpRequest) { | |
return args.httpRequest(currentDomain, pathToWellKnown, handleResponse); | |
} else { | |
- var port = DEFAULT_PORTS.https; | |
+ var port = DEFAULT_PORTS.http; | |
var host = currentDomain; | |
// somewhat odd, but we do allow a host:port to be specified as a domain. | |
// this supports local testing using the built in https implementation. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment