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

Cookies should not be case insensitive #186

Merged
merged 2 commits into from
Jun 13, 2018

Conversation

dvlato
Copy link
Contributor

@dvlato dvlato commented Jun 12, 2018

Fixes #185

@@ -335,7 +335,7 @@ private FormData toFormData(ByteBuf byteBuf) {
*/
public Optional<HttpCookie> cookie(String name) {
return cookies().stream()
.filter(cookie -> name.equalsIgnoreCase(cookie.name()))
.filter(cookie -> name.equals(cookie.name()))
.findFirst();
}

Copy link
Contributor

Choose a reason for hiding this comment

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

I would add few tests to demonstrate that the cookie names indeed are case insensitive.

@dvlato dvlato merged commit 0f9ea5a into ExpediaGroup:master Jun 13, 2018
mikkokar pushed a commit to mikkokar/styx that referenced this pull request Jun 18, 2018
* Cookie names should be considered case sensitive. Fixes ExpediaGroup#185

(cherry picked from commit 0f9ea5a)
mikkokar added a commit that referenced this pull request Jun 18, 2018
Patch #186 into styx 1.0 branch.

* Cookie names should be treatead case-sensitively  (#186)
* Cookie names should be considered case sensitive. Fixes #185

(cherry picked from commit 0f9ea5a)
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.

4 participants