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:
|
default:
|
||||||
}
|
}
|
||||||
content := r.FormValue("code")
|
content := r.FormValue("code")
|
||||||
|
|
||||||
if content != "" {
|
if content != "" {
|
||||||
aniListJwt = getAniListAuthorizationToken(content)
|
aniListJwt = getAniListAuthorizationToken(content)
|
||||||
_ = aniRing.Set(keyring.Item{
|
_ = aniRing.Set(keyring.Item{
|
||||||
@ -145,8 +144,7 @@ func getAniListAuthorizationToken(content string) AniListJWT {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
log.Printf("Failed at response, %s\n", err)
|
log.Printf("Failed at response, %s\n", err)
|
||||||
}
|
}
|
||||||
response.Header.Add("content-type", "application/x-www-form-urlencoded")
|
response.Header.Add("Content-type", "application/x-www-form-urlencoded")
|
||||||
response.Header.Add("Content-Type", "application/json")
|
|
||||||
response.Header.Add("Accept", "application/json")
|
response.Header.Add("Accept", "application/json")
|
||||||
|
|
||||||
client := &http.Client{}
|
client := &http.Client{}
|
||||||
|
Loading…
Reference in New Issue
Block a user