Skip to content

Commit 025adc2

Browse files
committed
Merge pull request #365 from adjohnson916/master
routing proxy 'this' reference bug?
2 parents 8b38c99 + 15afc23 commit 025adc2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/node-http-proxy/routing-proxy.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ var RoutingProxy = exports.RoutingProxy = function (options) {
6060
this.on('newListener', function (evt) {
6161
if (evt === 'proxyError' || evt === 'webSocketProxyError') {
6262
Object.keys(self.proxies).forEach(function (key) {
63-
self.proxies[key].on(evt, this.emit.bind(this, evt));
63+
self.proxies[key].on(evt, self.emit.bind(self, evt));
6464
});
6565
}
6666
});

0 commit comments

Comments
 (0)