Skip to content
This repository has been archived by the owner on Jul 22, 2019. It is now read-only.

Cookie auth token error #334

Open
rolandma opened this issue Mar 14, 2019 · 0 comments
Open

Cookie auth token error #334

rolandma opened this issue Mar 14, 2019 · 0 comments

Comments

@rolandma
Copy link

rolandma commented Mar 14, 2019

Edit: For the latest CouchDB v2.3.0
In client.py line 284, in the login method, the cookie was set to
if sys.version_info[0] > 2: cookie = headers._headers[0][1] else: cookie = headers.headers[0].split(';')[0]
_headers[0][1] which is not the auth token, but some string as "must-revalidate". the actual token is at _headers[5][1]. So by change that, you will be able to get a correct return from this login method.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant