mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-05 15:20:39 +01:00
dont render 404 page for favicon
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user