fix websocket support

This commit is contained in:
Roman Shtylman
2015-01-10 20:58:00 -08:00
parent cfdb42ee9c
commit 386910032e
6 changed files with 83 additions and 15 deletions

View File

@@ -53,6 +53,10 @@ function maybe_bounce(req, res, bounce) {
// we can't respond to these requests
var finished = false;
on_finished(res, function(err) {
if (req.headers['upgrade'] == 'websocket') {
return;
}
finished = true;
req.connection.destroy();
});