8000 [fix] Fix error events on `RoutingProxy` · netconstructor/node-http-proxy@37cc28f · GitHub
[go: up one dir, main page]

Skip to content

Commit 37cc28f

Browse files
committed
[fix] Fix error events on RoutingProxy
1 parent b8c27ed commit 37cc28f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
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(this, evt));
6464
});
6565
}
6666
});

0 commit comments

Comments
 (0)
0