Skip to content

Commit

Permalink
[fix] slimmer proxying
Browse files Browse the repository at this point in the history
  • Loading branch information
yawnt committed Sep 14, 2013
1 parent 07cfa6b commit 031aa0f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/caronte/passes/web.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 031aa0f

Please sign in to comment.