Skip to content

Commit dda6f7a

Browse files
committed
[feature] add emit proxyRes
1 parent 8085178 commit dda6f7a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/http-proxy/passes/web-incoming.js

+1
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ web_o = Object.keys(web_o).map(function(pass) {
117117
(options.buffer || req).pipe(proxyReq);
118118

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

0 commit comments

Comments
 (0)