mirror of
https://github.com/elyby/chrly.git
synced 2025-05-31 14:11:51 +05:30
#1: Remove comments about compatibility check with exists Authlibs
This commit is contained in:
@@ -41,14 +41,12 @@ func (cfg *Config) Textures(response http.ResponseWriter, request *http.Request)
|
|||||||
} else {
|
} else {
|
||||||
mojangTextures := <-cfg.MojangTexturesQueue.GetTexturesForUsername(username)
|
mojangTextures := <-cfg.MojangTexturesQueue.GetTexturesForUsername(username)
|
||||||
if mojangTextures == nil {
|
if mojangTextures == nil {
|
||||||
// TODO: test compatibility with exists authlibs
|
|
||||||
response.WriteHeader(http.StatusNoContent)
|
response.WriteHeader(http.StatusNoContent)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
texturesProp := mojangTextures.DecodeTextures()
|
texturesProp := mojangTextures.DecodeTextures()
|
||||||
if texturesProp == nil {
|
if texturesProp == nil {
|
||||||
// TODO: test compatibility with exists authlibs
|
|
||||||
response.WriteHeader(http.StatusInternalServerError)
|
response.WriteHeader(http.StatusInternalServerError)
|
||||||
cfg.Logger.Error("Unable to find textures property")
|
cfg.Logger.Error("Unable to find textures property")
|
||||||
return
|
return
|
||||||
|
@@ -189,8 +189,6 @@ func TestConfig_Textures(t *testing.T) {
|
|||||||
config.CreateHandler().ServeHTTP(w, req)
|
config.CreateHandler().ServeHTTP(w, req)
|
||||||
|
|
||||||
resp := w.Result()
|
resp := w.Result()
|
||||||
assert.Equal(204, resp.StatusCode) // TODO: this is not confirmed behavior
|
assert.Equal(204, resp.StatusCode)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user