Don't log errors for bad http requests
This commit is contained in:
parent
fa85030524
commit
029fa62af2
|
@ -244,6 +244,8 @@ module.exports = {
|
||||||
return res.status(400).send("Malformed path: " + req.path);
|
return res.status(400).send("Malformed path: " + req.path);
|
||||||
} else if (err.message && err.message.match(/requested range not/i)) {
|
} else if (err.message && err.message.match(/requested range not/i)) {
|
||||||
return res.status(416).end();
|
return res.status(416).end();
|
||||||
|
} else if (err.message && err.message.match(/bad request/i)) {
|
||||||
|
return res.status(400).end("Bad Request");
|
||||||
}
|
}
|
||||||
Logger.errlog.log(err.stack);
|
Logger.errlog.log(err.stack);
|
||||||
res.status(500).end();
|
res.status(500).end();
|
||||||
|
|
Loading…
Reference in a new issue