mirror of
https://github.com/azures04/crafatar.git
synced 2026-05-06 19:10:38 +02:00
clarify config options
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user