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