mirror of
https://github.com/http-party/node-http-proxy.git
synced 2026-02-01 17:46:18 +00:00
Merge pull request #164 from elfsternberg/553e7fbc335a9befd166d472f057aa50452a9d40
Modified the ad-hoc proxy lookup to use _getKey(), rather than the error-prone in-line method.
This commit is contained in:
commit
d1b19a1205
@ -180,8 +180,8 @@ RoutingProxy.prototype.proxyRequest = function (req, res, options) {
|
||||
options.host = location.host;
|
||||
}
|
||||
|
||||
var key = options.host + ':' + options.port,
|
||||
proxy;
|
||||
var key = this._getKey(options),
|
||||
proxy;
|
||||
|
||||
if (!this.proxies[key]) {
|
||||
this.add(options);
|
||||
@ -218,8 +218,8 @@ RoutingProxy.prototype.proxyWebSocketRequest = function (req, socket, head, opti
|
||||
options.host = location.host;
|
||||
}
|
||||
|
||||
var key = options.host + ':' + options.port,
|
||||
proxy;
|
||||
var key = this._getKey(options),
|
||||
proxy;
|
||||
|
||||
if (!this.proxies[key]) {
|
||||
this.add(options);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user