mirror of
https://github.com/azures04/crafatar.git
synced 2026-05-06 19:10:38 +02:00
if true then false else true
This commit is contained in:
@@ -27,7 +27,7 @@ router.get('/:type/:uuid.:ext?', function(req, res) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var body = raw_type == "head" ? false : true
|
var body = raw_type == "body";
|
||||||
var uuid = req.params.uuid;
|
var uuid = req.params.uuid;
|
||||||
var def = req.query.default;
|
var def = req.query.default;
|
||||||
var scale = parseInt(req.query.scale) || config.default_scale;
|
var scale = parseInt(req.query.scale) || config.default_scale;
|
||||||
@@ -66,7 +66,7 @@ router.get('/:type/:uuid.:ext?', function(req, res) {
|
|||||||
logging.log("status: " + http_status);
|
logging.log("status: " + http_status);
|
||||||
sendimage(http_status, status, image);
|
sendimage(http_status, status, image);
|
||||||
} else {
|
} else {
|
||||||
logging.log("image not found, using default.")
|
logging.log("image not found, using default.");
|
||||||
handle_default(404, status);
|
handle_default(404, status);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user