parent
							
								
									f5745789f8
								
							
						
					
					
						commit
						66cac3ca0c
					
				|  | @ -1,7 +1,6 @@ | ||||||
| package qbittorrent | package qbittorrent | ||||||
| 
 | 
 | ||||||
| import ( | import ( | ||||||
| 	"errors" |  | ||||||
| 	"fmt" | 	"fmt" | ||||||
| 	"net/http" | 	"net/http" | ||||||
| 	"os" | 	"os" | ||||||
|  | @ -39,7 +38,7 @@ func (c *QbittorrentClient) Login(user string, pass string) error { | ||||||
| 
 | 
 | ||||||
| 	authCookie := resp.Header().Get("set-cookie") | 	authCookie := resp.Header().Get("set-cookie") | ||||||
| 	if authCookie == "" { | 	if authCookie == "" { | ||||||
| 		return errors.New("auth cookie not found") | 		return fmt.Errorf("auth cookie not found. Headers: %+v", resp.Header()) | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| 	first := strings.Split(authCookie, ";")[0] | 	first := strings.Split(authCookie, ";")[0] | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue