parent
66cac3ca0c
commit
369bdd8f2b
|
@ -38,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 fmt.Errorf("auth cookie not found. Headers: %+v", resp.Header())
|
return fmt.Errorf("auth cookie not found.\nResponse: %s\nHeaders: %+v", resp.Body(), resp.Header())
|
||||||
}
|
}
|
||||||
|
|
||||||
first := strings.Split(authCookie, ";")[0]
|
first := strings.Split(authCookie, ";")[0]
|
||||||
|
|
Loading…
Reference in New Issue