clarify config options

This commit is contained in:
jomo
2014-11-05 00:12:08 +01:00
parent 2a13d1e1c5
commit 6eac9b907d
2 changed files with 3 additions and 3 deletions

View File

@@ -12,7 +12,7 @@ router.get('/:uuid.:ext?', function(req, res) {
var start = new Date();
// Prevent app from crashing/freezing
if (size <= config.min_size || size > config.max_size) {
if (size < config.min_size || size > config.max_size) {
// "Unprocessable Entity", valid request, but semantically erroneous:
// https://tools.ietf.org/html/rfc4918#page-78
res.status(422).send("422 Invalid size");