mirror of
https://github.com/azures04/crafatar.git
synced 2026-03-21 23:41:18 +01:00
oops 💩
This commit is contained in:
parent
fdb52d7d0f
commit
0734060d96
@ -92,7 +92,7 @@ router.get('/avatars/:uuid.:ext?', function(req, res) {
|
||||
}
|
||||
|
||||
function handle_default(http_status, img_status) {
|
||||
if (def != "steve" && def != "alex") {
|
||||
if (def && def != "steve" && def != "alex") {
|
||||
res.writeHead(301, {
|
||||
'Cache-Control': 'max-age=' + config.browser_cache_time + ', public',
|
||||
'Response-Time': new Date() - start,
|
||||
@ -101,7 +101,7 @@ router.get('/avatars/:uuid.:ext?', function(req, res) {
|
||||
});
|
||||
res.end();
|
||||
} else {
|
||||
def = def || skins.default_skin;
|
||||
def = def || skins.default_skin(uuid);
|
||||
skins.resize_img("public/images/" + def + ".png", size, function(err, image) {
|
||||
sendimage(http_status, img_status, image);
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user