Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fix bug in _proxyRequest in which the target port was disregarded #88

Merged
merged 1 commit into from

2 participants

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 4 additions and 2 deletions.
  1. +4 −2 openid.js
View
6 openid.js
@@ -183,10 +183,12 @@ var _proxyRequest = function(protocol, options)
if (! options.headers) options.headers = {};
+ var targetHostAndPort = targetHost + ':' + options.port;
+
options.host = proxyHostname;
options.port = proxyPort;
- options.path = protocol + '//' + targetHost + options.path;
- options.headers['Host'] = targetHost;
+ options.path = protocol + '//' + targetHostAndPort + options.path;
+ options.headers['Host'] = targetHostAndPort;
}
};
if ('https:' === protocol &&
Something went wrong with that request. Please try again.