From 99ee54259eae70c0c680ee82efc7dd184313f182 Mon Sep 17 00:00:00 2001 From: Christian Howe Date: Tue, 27 Mar 2012 21:37:23 -0400 Subject: [PATCH] Re-emit 'start', 'forward' and 'end' events in RoutingProxy. --- lib/node-http-proxy/routing-proxy.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/node-http-proxy/routing-proxy.js b/lib/node-http-proxy/routing-proxy.js index 3fefc15a3..818a34e2a 100644 --- a/lib/node-http-proxy/routing-proxy.js +++ b/lib/node-http-proxy/routing-proxy.js @@ -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')); }; //