Skip to content

Commit 961d2f9

Browse files
committed
[fix] support target and forward
1 parent bbe3bfd commit 961d2f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: lib/http-proxy/passes/web-incoming.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ web_o = Object.keys(web_o).map(function(pass) {
9696
common.setupOutgoing(options.ssl || {}, options, req, 'forward')
9797
);
9898
(options.buffer || req).pipe(forwardReq);
99-
return res.end();
99+
if(!options.target) { return res.end(); }
100100
}
101101

102102
// Request initalization

0 commit comments

Comments
 (0)