Skip to content

Commit

Permalink
write
Browse files Browse the repository at this point in the history
  • Loading branch information
yawnt committed Sep 14, 2013
1 parent 1a7bef0 commit f97c0c6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ttest.js
Expand Up @@ -47,6 +47,15 @@ srv.on('upgrade', function(req, socket, head) {


socket.pipe(sock).pipe(socket);
//req.pipe(r).pipe(socket);
/*console.log(hd.toString('utf-8'));
var str = Object.keys(res.headers).map(function(i) {
return i + ": " + res.headers[i];
}).join('\r\n');
socket.write("HTTP/1.1 101 Switching Protocols\r\n" + str);
socket.write(hd);
socket.pipe(sock).pipe(socket);*/
});

r.end();
Expand Down

0 comments on commit f97c0c6

Please sign in to comment.