Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rfc2617 digest parsing bug #16

Open
xuxiong opened this issue Aug 6, 2015 · 0 comments
Open

rfc2617 digest parsing bug #16

xuxiong opened this issue Aug 6, 2015 · 0 comments

Comments

@xuxiong
Copy link

xuxiong commented Aug 6, 2015

line 60 in rfc2617.py:
for n,v in map(lambda x: x.strip().split('='), rest.split(',') if rest else []):
should be:
for n,v in map(lambda x: x.strip().split('=', 1), rest.split(',') if rest else []):

otherwise, if value contains more then one '=', a "too many value unpack" exception will be thrown.

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

No branches or pull requests

1 participant