Skip to content

Commit 1213e46

Browse files
committed
Add the req and res objects to the proxyRes event
1 parent c472527 commit 1213e46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

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

133133
proxyReq.on('response', function(proxyRes) {
134-
if(server) { server.emit('proxyRes', proxyRes); }
134+
if(server) { server.emit('proxyRes', proxyRes, req, res); }
135135
for(var i=0; i < web_o.length; i++) {
136136
if(web_o[i](req, res, proxyRes)) { break; }
137137
}

0 commit comments

Comments
 (0)