-
Notifications
You must be signed in to change notification settings - Fork 53
Fix Cookie handling as per RFC 6265 Section 5.4 #104
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
Conversation
I should note this is a similar solution to guzzle's CookieJar |
Totally approve here, for the reference, the specification say that:
Would you like help for adding test ? Or if you don't have time i can do them. But former solution would be nice, and we can help you better in our Slack channel |
Joel, do you have time to add the test so we can merge this fix? |
I would like to merge this PR. Joel, do you still want to work with the test? |
No time ATM, sorry for the delay :/ |
I don't mind writing the tests and do have a few spare cycles but was just extremely lost as to the test syntax, if someone can point me to some docs I can take a stab at it again.. I may review again anyway since perhaps I hadn't had enough sleep the first time I looked at the tests in this project... |
I have no idea why I thought it was so complicated the first time. Writing a test was quite easy. I must have been sleep deprived the first time. It'd be great to get this fixed, merged and released. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this looks correct to me.
its technically allowed to have multiple of the same header and the server is expected to use all such headers, but its indeed unexpected. i like this solution better.
can you please add an entry to CHANGELOG.md ? i'd label it as a "cleanup", its not strictly a bugfix ;-) |
Concatenate multiple cookies
I think the latest test failure is unrelated to my change.. |
thanks a lot! that failure looks like a temporary network problem. merged your change. |
Concatenate multiple cookies
What's in this PR?
Makes the cookie plugin only add one cookie header with all cookies separated by ;
Checklist
To Do