From 0e057a3d92bc3a094e13b15148ca18d55650b413 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Fri, 23 Oct 2015 13:52:42 -0400 Subject: [PATCH] dont render 404 page for favicon --- src/routes/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/routes/index.js b/src/routes/index.js index b2d1bac896..57a8c8134a 100644 --- a/src/routes/index.js +++ b/src/routes/index.js @@ -152,6 +152,8 @@ function handle404(app, middleware) { res.status(200).json({}); } else if (req.path.startsWith(relativePath + '/uploads')) { res.status(404).send(''); + } else if (req.path === '/favicon.ico') { + res.status(404).send(''); } else if (req.accepts('html')) { if (process.env.NODE_ENV === 'development') { winston.warn('Route requested but not found: ' + req.url);