From c03021403aad34459aef89904ce45477e01b42c4 Mon Sep 17 00:00:00 2001 From: ErickSkrauch Date: Fri, 29 Jul 2016 01:20:09 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B0=20=D0=BE=D1=88=D0=B8=D0=B1=D0=BA=D0=B0,=20?= =?UTF-8?q?=D0=BA=D0=BE=D0=B3=D0=B4=D0=B0=20=D0=BA=20=D1=81=D0=BA=D0=B8?= =?UTF-8?q?=D0=BD=D0=B0=D0=BC=20=D0=BC=D0=BE=D1=8F=D0=BD=D0=B3=D0=B0=20?= =?UTF-8?q?=D0=BF=D1=80=D0=B8=D0=BA=D0=BB=D0=B5=D0=B8=D0=B2=D0=B0=D0=BB?= =?UTF-8?q?=D1=81=D1=8F=20=D0=BD=D0=B0=D1=88=20=D0=B4=D0=BE=D0=BC=D0=B5?= =?UTF-8?q?=D0=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/routes/Skin.go | 1 - lib/routes/Textures.go | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/routes/Skin.go b/lib/routes/Skin.go index ca4f42f..650fd37 100644 --- a/lib/routes/Skin.go +++ b/lib/routes/Skin.go @@ -16,7 +16,6 @@ func Skin(w http.ResponseWriter, r *http.Request) { rec, err := data.FindRecord(username) if (err != nil) { http.Redirect(w, r, "http://skins.minecraft.net/MinecraftSkins/" + username + ".png", 301) - log.Println("Cannot get skin for username " + username) return } diff --git a/lib/routes/Textures.go b/lib/routes/Textures.go index b05df03..e298922 100644 --- a/lib/routes/Textures.go +++ b/lib/routes/Textures.go @@ -19,11 +19,13 @@ func Textures(w http.ResponseWriter, r *http.Request) { if (err != nil || rec.SkinId == 0) { rec.Url = "http://skins.minecraft.net/MinecraftSkins/" + username + ".png" rec.Hash = string(tools.BuildNonElyTexturesHash(username)) + } else { + rec.Url = tools.BuildElyUrl(rec.Url) } textures := data.TexturesResponse{ Skin: &data.Skin{ - Url: tools.BuildElyUrl(rec.Url), + Url: rec.Url, Hash: rec.Hash, }, }