Skip to content

Commit 99ee542

Browse files
committed
Re-emit 'start', 'forward' and 'end' events in RoutingProxy.
1 parent e9fd3f4 commit 99ee542

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: lib/node-http-proxy/routing-proxy.js

+3
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,9 @@ RoutingProxy.prototype.add = function (options) {
9292
this.proxies[key] = new HttpProxy(options);
9393
this.proxies[key].on('proxyError', this.emit.bind(this, 'proxyError'));
9494
this.proxies[key].on('webSocketProxyError', this.emit.bind(this, 'webSocketProxyError'));
95+
this.proxies[key].on('start', this.emit.bind(this, 'start'));
96+
this.proxies[key].on('forward', this.emit.bind(this, 'forward'));
97+
this.proxies[key].on('end', this.emit.bind(this, 'end'));
9598
};
9699

97100
//

0 commit comments

Comments
 (0)