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

do not set url on invalid cookies #2788

Merged
merged 2 commits into from Nov 15, 2018
Merged

do not set url on invalid cookies #2788

merged 2 commits into from Nov 15, 2018

Conversation

brian-mann
Copy link
Member

@brian-mann brian-mann commented Nov 15, 2018

fixes #2724

@@ -66,8 +66,12 @@ newCookieJar = ->

setCookie: (cookieOrStr, uri, options) ->
## store the original URL this cookie was set on
cookie = j.setCookieSync(cookieOrStr, uri, options)
cookie.url = uri
if cookie = j.setCookieSync(cookieOrStr, uri, options)
Copy link
Contributor

Choose a reason for hiding this comment

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

hehe, have you seen my code in a paranoid style where arguments and results are constantly asserted? this is why

@brian-mann brian-mann merged commit d4845d8 into develop Nov 15, 2018
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.

3.1.1 regression: cookie can't be set when visiting local devserver
2 participants