mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-05 05:25:49 +01:00
@@ -183,7 +183,7 @@ function catch404(req, res, next) {
|
||||
res.status(404);
|
||||
|
||||
if (isClientScript.test(req.url)) {
|
||||
res.type('text/javascript').send(200, '');
|
||||
res.type('text/javascript').status(200).send('');
|
||||
} else if (isLanguage.test(req.url)) {
|
||||
res.json(200, {});
|
||||
} else if (req.accepts('html')) {
|
||||
|
||||
Reference in New Issue
Block a user