mirror of
https://github.com/http-party/node-http-proxy.git
synced 2025-12-08 20:59:18 +00:00
Merge pull request #365 from adjohnson916/master
routing proxy 'this' reference bug?
This commit is contained in:
commit
025adc2912
@ -60,7 +60,7 @@ var RoutingProxy = exports.RoutingProxy = function (options) {
|
||||
this.on('newListener', function (evt) {
|
||||
if (evt === 'proxyError' || evt === 'webSocketProxyError') {
|
||||
Object.keys(self.proxies).forEach(function (key) {
|
||||
self.proxies[key].on(evt, this.emit.bind(this, evt));
|
||||
self.proxies[key].on(evt, self.emit.bind(self, evt));
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user