Node.js based forum software built for the modern web
dont render 404 page for favicon
barisusakli0e057a3d92bc
diff --git a/src/routes/index.js b/src/routes/index.jsindex 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);