mirror of
https://github.com/azures04/crafatar.git
synced 2026-03-22 07:51:17 +01:00
allow .png extension for avatars
This commit is contained in:
parent
81cd71bf6e
commit
0a8f2e133e
@ -15,7 +15,7 @@ var human_status = {
|
||||
// GET avatar request
|
||||
module.exports = function(req, res) {
|
||||
var start = new Date();
|
||||
var uuid = (req.url.pathname.split("/")[2] || "");
|
||||
var uuid = (req.url.pathname.split("/")[2] || "").split(".")[0];
|
||||
var size = parseInt(req.url.query.size) || config.default_size;
|
||||
var def = req.url.query.default;
|
||||
var helm = req.url.query.hasOwnProperty("helm");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user