if true then false else true

This commit is contained in:
jomo 2014-12-08 15:02:05 +01:00 committed by Jake
parent 62e1994121
commit 834e737498

View File

@ -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);
} }
}); });