webserver: update matcher for HTTP 416 errors

This commit is contained in:
calzoneman 2015-09-27 09:33:42 -07:00
parent b2a4afd9ff
commit 22a4115217
1 changed files with 1 additions and 1 deletions

View File

@ -251,7 +251,7 @@ module.exports = {
if (err) { if (err) {
if (err.message && err.message.match(/failed to decode param/i)) { if (err.message && err.message.match(/failed to decode param/i)) {
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(/range not satisfiable/i)) {
return res.status(416).end(); return res.status(416).end();
} else if (err.message && err.message.match(/request entity too large/i)) { } else if (err.message && err.message.match(/request entity too large/i)) {
return res.status(413).end(); return res.status(413).end();