mirror of
https://github.com/azures04/crafatar.git
synced 2026-03-21 23:41:18 +01:00
Lower case UUIDs - skins/avatars
This commit is contained in:
parent
cd7830242e
commit
e4bdecfbb7
@ -33,8 +33,8 @@ router.get("/:uuid.:ext?", function(req, res) {
|
||||
return;
|
||||
}
|
||||
|
||||
// strip dashes
|
||||
uuid = uuid.replace(/-/g, "");
|
||||
// strip dashes, to lower case
|
||||
uuid = uuid.replace(/-/g, "").toLowerCase();
|
||||
|
||||
try {
|
||||
helpers.get_avatar(uuid, helm, size, function(err, status, image, hash) {
|
||||
|
||||
@ -18,8 +18,8 @@ router.get("/:uuid.:ext?", function(req, res) {
|
||||
return;
|
||||
}
|
||||
|
||||
// strip dashes
|
||||
uuid = uuid.replace(/-/g, "");
|
||||
// strip dashes, to lower case
|
||||
uuid = uuid.replace(/-/g, "").toLowerCase();
|
||||
|
||||
try {
|
||||
helpers.get_skin(uuid, function(err, hash, image) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user