Skip to content

Auth cookie parsed incorrectly #66

@zefciu

Description

@zefciu

I get the following error when trying to use pyfacebook in pylons environment:
ValueError: dictionary update sequence element #0 has length 1; 2 is required
It is generated in the following line:
params = dict([part.split('=') for part in cookies[cookie_name]])
As the cookies[cookie_name] is a string, the comprehension iterates over characters. I believe that changing this line to:
params = dict([part.split('=') for part in cookies[cookie_name].split('&')])
would fix the problem, but would break compatibility with some other frameworks. What should I do?

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