fixed bug that was stopping anilist from logging in
This commit is contained in:
parent
ea2c4475de
commit
0bf784562a
@ -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{}
|
||||
|
Loading…
Reference in New Issue
Block a user