Skip to content

Cookie auth token error #334

Open
Open
@rolandma

Description

@rolandma

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions