This commit is contained in:
psychobunny
2014-10-04 18:47:56 -04:00
parent bf852d8329
commit 1b2ccda40b
11 changed files with 35 additions and 35 deletions

View File

@@ -183,7 +183,7 @@ function catch404(req, res, next) {
res.status(404);
if (isClientScript.test(req.url)) {
res.type('text/javascript').send(200, '');
res.type('text/javascript').status(200).send('');
} else if (isLanguage.test(req.url)) {
res.json(200, {});
} else if (req.accepts('html')) {