-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Allow space in cookie value for Set-Cookie header #14435
Comments
Fixes crystal-lang#14435. Move parse_set_cookie example to the correct location.
Fixes crystal-lang#14435. Move parse_set_cookie example to the correct location.
Fixes crystal-lang#14435. Move parse_set_cookie example to the correct location.
I guess my Crystal community counter reset after 10 years of doing Crystal 😁 |
xD. |
It might not be a bad idea to rename this tag 😆 |
I will say GH provides native integration with some of the default labels. E.g. Also having an actual So, it could definitely be a good idea if we wanted to make use of some of those integrations. |
Fixes crystal-lang#14435. Move parse_set_cookie example to the correct location.
Fixes crystal-lang#14435. Move parse_set_cookie example to the correct location.
Fixes crystal-lang#14435. Move parse_set_cookie example to the correct location.
Seems we get a fix at: #14435 just needs someone to approve it ;) |
Fixes crystal-lang#14435. Move parse_set_cookie example to the correct location.
Fixes crystal-lang#14435. Move parse_set_cookie example to the correct location.
Fixes crystal-lang#14435. Move parse_set_cookie example to the correct location.
Right now Crystals does not support parsing cookies that has unquoted space in the Set-Cookie header, but, as stated in https://datatracker.ietf.org/doc/html/rfc6265#section-5.2
Many servers support this and allows this behavior, which means the HTTP::Client should parse the
cookies
and not avoid them.A simple example is the following:
I expect cookies to have 1 cookie, but it doesn't. if I remove the space from
CustomerName=BAR FOO
and instead make itBARFOO
I see:And everything is all good and well.
There is a similar issue that happened in NMAP: nmap/nmap#844 and they also fixed it to support this behavior.
The text was updated successfully, but these errors were encountered: