Skip to content

Commit

Permalink
[feature] add emit proxyRes
Browse files Browse the repository at this point in the history
  • Loading branch information
yawnt committed Nov 5, 2013
1 parent 8085178 commit dda6f7a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/http-proxy/passes/web-incoming.js
Expand Up @@ -117,6 +117,7 @@ web_o = Object.keys(web_o).map(function(pass) {
(options.buffer || req).pipe(proxyReq);

proxyReq.on('response', function(proxyRes) {
server.emit('proxyRes', proxyRes);
for(var i=0; i < web_o.length; i++) {
if(web_o[i](req, res, proxyRes)) { break; }
}
Expand Down

0 comments on commit dda6f7a

Please sign in to comment.