fixed bug that was stopping anilist from logging in

This commit is contained in:
John O'Keefe 2024-10-01 15:07:02 -04:00
parent ea2c4475de
commit 0bf784562a

View File

@ -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{}