diff --git a/AniListUserFunctions.go b/AniListUserFunctions.go index 22c94ae..0f6c7ed 100644 --- a/AniListUserFunctions.go +++ b/AniListUserFunctions.go @@ -78,7 +78,6 @@ func (a *App) handleAniListCallback(wg *sync.WaitGroup) { default: } content := r.FormValue("code") - if content != "" { aniListJwt = getAniListAuthorizationToken(content) _ = aniRing.Set(keyring.Item{ @@ -145,8 +144,7 @@ func getAniListAuthorizationToken(content string) AniListJWT { if err != nil { log.Printf("Failed at response, %s\n", err) } - response.Header.Add("content-type", "application/x-www-form-urlencoded") - response.Header.Add("Content-Type", "application/json") + response.Header.Add("Content-type", "application/x-www-form-urlencoded") response.Header.Add("Accept", "application/json") client := &http.Client{}