mirror of
https://github.com/http-party/node-http-proxy.git
synced 2026-02-01 17:46:18 +00:00
[fix] support target and forward
This commit is contained in:
parent
bbe3bfdf98
commit
961d2f9400
@ -96,7 +96,7 @@ web_o = Object.keys(web_o).map(function(pass) {
|
||||
common.setupOutgoing(options.ssl || {}, options, req, 'forward')
|
||||
);
|
||||
(options.buffer || req).pipe(forwardReq);
|
||||
return res.end();
|
||||
if(!options.target) { return res.end(); }
|
||||
}
|
||||
|
||||
// Request initalization
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user