From 031aa0fbf30bd377696c4efa508f6fc769bf1070 Mon Sep 17 00:00:00 2001 From: yawnt Date: Sat, 14 Sep 2013 13:33:38 +0200 Subject: [PATCH] [fix] slimmer proxying --- lib/caronte/passes/web.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/caronte/passes/web.js b/lib/caronte/passes/web.js index 363d8ff5e..33da58575 100644 --- a/lib/caronte/passes/web.js +++ b/lib/caronte/passes/web.js @@ -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();