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