[feature] add emit proxyRes

This commit is contained in:
yawnt 2013-11-05 17:44:04 +01:00
parent 8085178dc2
commit dda6f7a45a

View File

@ -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; }
}