Porsche: keep cookies alive
This commit is contained in:
parent
dcca3638ba
commit
4d516d5844
1 changed files with 2 additions and 1 deletions
|
|
@ -76,7 +76,8 @@ func (v *Identity) Login(oc *oauth2.Config, user, password string) error {
|
|||
v.Client.Jar, _ = cookiejar.New(nil)
|
||||
v.Client.CheckRedirect = request.DontFollow
|
||||
defer func() {
|
||||
v.Client.Jar = nil
|
||||
// keep cookies around
|
||||
// v.Client.Jar = nil
|
||||
v.Client.CheckRedirect = nil
|
||||
}()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue