Fix cape url scheme

This commit is contained in:
ErickSkrauch 2020-04-21 16:24:30 +03:00
parent 6453583e31
commit 2df31704c1
No known key found for this signature in database
GPG Key ID: 669339FCBB30EE0E

View File

@ -151,7 +151,8 @@ func (ctx *Skinsystem) texturesHandler(response http.ResponseWriter, request *ht
if capeErr == nil && cape != nil {
textures.Cape = &mojang.CapeTexturesResponse{
Url: request.URL.Scheme + "://" + request.Host + "/cloaks/" + username,
// Use statically http since the application doesn't support TLS
Url: "http://" + request.Host + "/cloaks/" + username,
}
}
} else {