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

Remove leading white spaces in cookie value #1130

Merged
merged 1 commit into from
Aug 24, 2018
Merged

Remove leading white spaces in cookie value #1130

merged 1 commit into from
Aug 24, 2018

Conversation

ostcar
Copy link
Contributor

@ostcar ostcar commented Aug 22, 2018

MorselCoockie.output() adds a leading whitespace at the cookie-value, see https://github.com/python/cpython/blob/3.7/Lib/http/cookies.py#L371

At least uvicon with h11 has a problem with that whitespace. So it has to be stripped.

@andrewgodwin andrewgodwin merged commit 6cea1cc into django:master Aug 24, 2018
@andrewgodwin
Copy link
Member

Great, thanks!

@ostcar ostcar deleted the fix_http_cookie branch August 24, 2018 08:47
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

Successfully merging this pull request may close these issues.

None yet

2 participants