diff --git a/tests/support/sockjs_server.js b/tests/support/sockjs_server.js index 5a6f688c..055d8fbe 100644 --- a/tests/support/sockjs_server.js +++ b/tests/support/sockjs_server.js @@ -54,7 +54,8 @@ function startServer(port, config, prefix) { } else { serve(req, res, function(err) { var status = err ? err.statusCode : 404; - return res.writeHead(status).end(); + res.writeHead(status); + res.end(); }); } });