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

🐞 correctly parse multiple values out of the Cookie header #484

Merged
merged 4 commits into from
May 7, 2020

Conversation

jbr
Copy link
Member

@jbr jbr commented May 2, 2020

closes #469

@jbr
Copy link
Member Author

jbr commented May 2, 2020

after i wrote this, @fundon noticed that this is a regression from https://github.com/http-rs/tide/blob/v0.6.0/src/middleware/cookies.rs#L82-L103, so the alternative fix would be reverting to that code but with the test in this pr. the code is identical in functionality though, and this version might be slightly easier to read

@jbr jbr changed the title correctly parse multiple values out of the Cookie header 🐞 correctly parse multiple values out of the Cookie header May 6, 2020
Copy link
Member

@yoshuawuyts yoshuawuyts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks heaps!

@yoshuawuyts yoshuawuyts merged commit 96acc0c into http-rs:master May 7, 2020
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.

Tide mis-parses multiple cookies as a single cookie
2 participants