[fix] slimmer proxying

This commit is contained in:
yawnt 2013-09-14 13:33:38 +02:00
parent 07cfa6b981
commit 031aa0fbf3

View File

@ -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();