Skip to content

Commit 031aa0f

Browse files
committed
[fix] slimmer proxying
1 parent 07cfa6b commit 031aa0f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/caronte/passes/web.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,10 @@ function stream(req, res, options) {
9191
common.setupOutgoing(options.ssl || {}, options, req)
9292
);
9393

94+
req.pipe(proxyReq);
95+
9496
proxyReq.on('response', function(proxyRes) {
95-
req.pipe(proxyRes).pipe(res);
97+
proxyRes.pipe(res);
9698
});
9799

98100
proxyReq.end();

0 commit comments

Comments
 (0)