djc / couchdb-python

Python library for working with CouchDB
Other
202 stars 86 forks source link

Cookie auth token error #334

Open rolandma opened 5 years ago

rolandma commented 5 years ago

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.