mirror of
https://github.com/azures04/crafatar.git
synced 2026-05-06 19:10:38 +02:00
return 200 for default avatars/renders/skins, fixes #111
This commit is contained in:
@@ -69,7 +69,7 @@ module.exports = function(req, res) {
|
||||
logging.debug(rid, "matches:", matches);
|
||||
sendimage(rid, http_status, status, image);
|
||||
} else {
|
||||
handle_default(rid, 404, status, userId);
|
||||
handle_default(rid, 200, status, userId);
|
||||
}
|
||||
});
|
||||
} catch(e) {
|
||||
|
||||
@@ -85,7 +85,7 @@ module.exports = function(req, res) {
|
||||
sendimage(rid, http_status, status, image);
|
||||
} else {
|
||||
logging.log(rid, "image not found, using default.");
|
||||
handle_default(rid, 404, status, userId);
|
||||
handle_default(rid, 200, status, userId);
|
||||
}
|
||||
});
|
||||
} catch(e) {
|
||||
|
||||
@@ -43,7 +43,7 @@ module.exports = function(req, res) {
|
||||
logging.debug(rid, "matches:", matches);
|
||||
sendimage(rid, http_status, image);
|
||||
} else {
|
||||
handle_default(rid, 404, userId);
|
||||
handle_default(rid, 200, userId);
|
||||
}
|
||||
});
|
||||
} catch(e) {
|
||||
|
||||
Reference in New Issue
Block a user