mirror of
https://github.com/elyby/chrly.git
synced 2026-10-20 20:58:12 +05:30
#1: Remove comments about compatibility check with exists Authlibs
This commit is contained in:
1 parent
2c7a1625f3
commit
9250d53fb3
2 files changed
+1
-5
No files matched your search
@@ -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)
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user