diff --git a/lib/https/index.js b/lib/https/index.js index 074f0ab74..f7101e479 100644 --- a/lib/https/index.js +++ b/lib/https/index.js @@ -67,14 +67,13 @@ function handleWebsocket(socket, wss, callback, app) { reqSocket.write(socket.getBuffer()); socket.pipe(reqSocket); parseReq(reqSocket, function(err, req) { - if (err) { return callback(err); } - + socket.write(req.getBuffer()); req.pipe(socket); callback(null, reqSocket); - }); + }, true); } }