mirror of
https://github.com/http-party/node-http-proxy.git
synced 2025-12-08 20:59:18 +00:00
[fix] slimmer proxying
This commit is contained in:
parent
07cfa6b981
commit
031aa0fbf3
@ -91,8 +91,10 @@ function stream(req, res, options) {
|
||||
common.setupOutgoing(options.ssl || {}, options, req)
|
||||
);
|
||||
|
||||
req.pipe(proxyReq);
|
||||
|
||||
proxyReq.on('response', function(proxyRes) {
|
||||
req.pipe(proxyRes).pipe(res);
|
||||
proxyRes.pipe(res);
|
||||
});
|
||||
|
||||
proxyReq.end();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user