Skip to content

Commit

Permalink
Re-emit 'start', 'forward' and 'end' events in RoutingProxy.
Browse files Browse the repository at this point in the history
  • Loading branch information
coderarity committed Mar 28, 2012
1 parent e9fd3f4 commit 99ee542
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/node-http-proxy/routing-proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ RoutingProxy.prototype.add = function (options) {
this.proxies[key] = new HttpProxy(options);
this.proxies[key].on('proxyError', this.emit.bind(this, 'proxyError'));
this.proxies[key].on('webSocketProxyError', this.emit.bind(this, 'webSocketProxyError'));
this.proxies[key].on('start', this.emit.bind(this, 'start'));
this.proxies[key].on('forward', this.emit.bind(this, 'forward'));
this.proxies[key].on('end', this.emit.bind(this, 'end'));
};

//
Expand Down

0 comments on commit 99ee542

Please sign in to comment.