mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 22:45:46 +01:00
another fix for express deprecations
This commit is contained in:
@@ -185,7 +185,7 @@ function catch404(req, res, next) {
|
|||||||
if (isClientScript.test(req.url)) {
|
if (isClientScript.test(req.url)) {
|
||||||
res.type('text/javascript').status(200).send('');
|
res.type('text/javascript').status(200).send('');
|
||||||
} else if (isLanguage.test(req.url)) {
|
} else if (isLanguage.test(req.url)) {
|
||||||
res.json(200, {});
|
res.status(200).json({});
|
||||||
} else if (req.accepts('html')) {
|
} else if (req.accepts('html')) {
|
||||||
if (process.env.NODE_ENV === 'development') {
|
if (process.env.NODE_ENV === 'development') {
|
||||||
winston.warn('Route requested but not found: ' + req.url);
|
winston.warn('Route requested but not found: ' + req.url);
|
||||||
|
|||||||
Reference in New Issue
Block a user