-
-
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 parsing cookies with space in the value #14455
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sija
reviewed
Apr 8, 2024
Blacksmoke16
added
kind:bug
A bug in the code. Does not apply to documentation, specs, etc.
topic:stdlib:networking
labels
Apr 8, 2024
anton7c3
force-pushed
the
master
branch
2 times, most recently
from
April 8, 2024 13:46
eeb056a
to
ebce743
Compare
Sija
approved these changes
Apr 8, 2024
Looks good to me and fixes the current issue I'm seeing (#14435) |
bararchy
approved these changes
Apr 8, 2024
hovsater
reviewed
Apr 8, 2024
anton7c3
force-pushed
the
master
branch
3 times, most recently
from
April 15, 2024 14:53
c748b0d
to
912f1c1
Compare
Sija
reviewed
Apr 15, 2024
anton7c3
force-pushed
the
master
branch
2 times, most recently
from
May 16, 2024 16:09
dac7efe
to
1c91eaa
Compare
Sija
approved these changes
May 16, 2024
straight-shoota
approved these changes
May 20, 2024
bararchy
approved these changes
May 29, 2024
beta-ziliani
approved these changes
May 29, 2024
ysbaddaden
reviewed
May 30, 2024
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.
I just left a question about a convoluted case (spaces around the quotes), otherwise 👍
Fixes crystal-lang#14435. Move parse_set_cookie example to the correct location.
straight-shoota
approved these changes
May 31, 2024
straight-shoota
added
kind:feature
and removed
kind:bug
A bug in the code. Does not apply to documentation, specs, etc.
labels
Jun 11, 2024
ysbaddaden
approved these changes
Jun 25, 2024
straight-shoota
changed the title
fix(http/cookies): allow spaces to be present in the cookie value
Allow parsing cookies with space in the value
Jun 26, 2024
1 task
akadusei
added a commit
to akadusei/lucky
that referenced
this pull request
Aug 12, 2024
``` Failures: 1) Lucky::CookieJar raises a nicer error for invalid cookie values Failure/Error: expect_raises(Lucky::InvalidCookieValueError, "Cookie value for 'cookie' is invalid") do Expected Lucky::InvalidCookieValueError but nothing was raised Error: # spec/lucky/cookies/cookie_jar_spec.cr:41 ``` Crystal v1.13 accepts space in cookie values as valid. See <crystal-lang/crystal#14455>.
5 tasks
jwoertink
pushed a commit
to luckyframework/lucky
that referenced
this pull request
Aug 12, 2024
* Fix invalid query string for array params * Add spec expectation * Add check for correctness of values returned from array query params * Fix failed specs in Crystal v1.13 ``` Failures: 1) Lucky::CookieJar raises a nicer error for invalid cookie values Failure/Error: expect_raises(Lucky::InvalidCookieValueError, "Cookie value for 'cookie' is invalid") do Expected Lucky::InvalidCookieValueError but nothing was raised Error: # spec/lucky/cookies/cookie_jar_spec.cr:41 ``` Crystal v1.13 accepts space in cookie values as valid. See <crystal-lang/crystal#14455>.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #14435.
Move parse_set_cookie example to the correct location.