From 6e77cd390929842088ae9f6deb922a6627ddfecd Mon Sep 17 00:00:00 2001
From: yawnt <yawn.localhost@gmail.com>
Date: Sun, 15 Sep 2013 00:43:01 +0200
Subject: [PATCH] [fix] do not call .end

---
 lib/caronte/passes/web.js | 2 +-
 lib/caronte/passes/ws.js  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/caronte/passes/web.js b/lib/caronte/passes/web.js
index 6f82da22e..64ee2875c 100644
--- a/lib/caronte/passes/web.js
+++ b/lib/caronte/passes/web.js
@@ -103,7 +103,7 @@ function stream(req, res, options) {
     proxyRes.pipe(res);  
   });
 
-  proxyReq.end();
+  //proxyReq.end();
    
   /*if(options.forward) {
     req.pipe(new ForwardStream(options));
diff --git a/lib/caronte/passes/ws.js b/lib/caronte/passes/ws.js
index 1c9215b84..63a4deeaf 100644
--- a/lib/caronte/passes/ws.js
+++ b/lib/caronte/passes/ws.js
@@ -90,7 +90,7 @@ function stream(req, socket, options, head) {
     proxySocket.pipe(socket).pipe(proxySocket);
   });
 
-  proxyReq.end();
+  proxyReq.end(); // XXX: CHECK IF THIS IS THIS CORRECT
 }
 
 ] // <--