Fix Error: Requested Range Not Satisfiable
This commit is contained in:
parent
91c24518c5
commit
66865f718c
|
@ -238,9 +238,11 @@ module.exports = {
|
|||
if (err) {
|
||||
if (err.message && err.message.match(/failed to decode param/i)) {
|
||||
return res.status(400).send("Malformed path: " + req.path);
|
||||
} else if (err.message && err.message.match(/requested range not/i)) {
|
||||
return res.status(416).end();
|
||||
}
|
||||
Logger.errlog.log(err.stack);
|
||||
res.send(500);
|
||||
res.status(500).end();
|
||||
} else {
|
||||
next();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue