Skip to content

Instantly share code, notes, and snippets.

@zaach
Created May 23, 2014 21:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zaach/be0c1f0d3c788fed754e to your computer and use it in GitHub Desktop.
Save zaach/be0c1f0d3c788fed754e to your computer and use it in GitHub Desktop.
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