From b2866abf5c6f68fd917c5a0d8077b4f1d130df97 Mon Sep 17 00:00:00 2001 From: psychobunny Date: Tue, 7 Oct 2014 16:55:01 -0400 Subject: [PATCH] another fix for express deprecations --- src/routes/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/index.js b/src/routes/index.js index 6e230d8830..46737ebd57 100644 --- a/src/routes/index.js +++ b/src/routes/index.js @@ -185,7 +185,7 @@ function catch404(req, res, next) { if (isClientScript.test(req.url)) { res.type('text/javascript').status(200).send(''); } else if (isLanguage.test(req.url)) { - res.json(200, {}); + res.status(200).json({}); } else if (req.accepts('html')) { if (process.env.NODE_ENV === 'development') { winston.warn('Route requested but not found: ' + req.url);