diff --git a/Microsoft.AspNet.NodeServices/Content/Node/entrypoint-http.js b/Microsoft.AspNet.NodeServices/Content/Node/entrypoint-http.js index f19c114b36..b9478c27e6 100644 --- a/Microsoft.AspNet.NodeServices/Content/Node/entrypoint-http.js +++ b/Microsoft.AspNet.NodeServices/Content/Node/entrypoint-http.js @@ -20,7 +20,8 @@ var server = http.createServer(function(req, res) { if (!hasSentResult) { hasSentResult = true; if (errorValue) { - res.status(500).send(errorValue); + res.statusCode = 500; + res.end(errorValue.toString()); } else if (typeof successValue !== 'string') { // Arbitrary object/number/etc - JSON-serialize it res.setHeader('Content-Type', 'application/json');