From 7070796c53affb5372d151c2c7699eef28137c72 Mon Sep 17 00:00:00 2001 From: Mikael Korpela Date: Mon, 18 May 2015 19:25:02 +0300 Subject: [PATCH] Prettier res.status().format() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (due tabs — my editor has tab-spacing set to 2 so I don’t notice when stuff like this looks crappy) --- modules/core/server/controllers/core.server.controller.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/modules/core/server/controllers/core.server.controller.js b/modules/core/server/controllers/core.server.controller.js index 5fe58e65df..45d5d76468 100644 --- a/modules/core/server/controllers/core.server.controller.js +++ b/modules/core/server/controllers/core.server.controller.js @@ -24,9 +24,7 @@ exports.renderServerError = function(req, res) { */ exports.renderNotFound = function(req, res) { - res - .status(404) - .format({ + res.status(404).format({ 'text/html': function(){ res.render('modules/core/server/views/404', { url: req.originalUrl