Skip to content
This repository has been archived by the owner on Nov 15, 2020. It is now read-only.

If domain is not set, do not force as empty string. Breaks IE. #37

Merged
merged 1 commit into from Sep 28, 2015

Conversation

ndreckshage
Copy link
Contributor

Hey @pathouse can you explain #25 a bit? I know this repo is pretty old but I think the merged PR breaks Internet Explorer if a domain is not explicitly set. A set-cookie header does not need quotes.

If domain is explicitly set, master + this PR both render...

Set-Cookie: flash=%7B%22error%22%3A%22test123%22%7D; domain=hello; path=/

But if domain is nil, master renders... (does not work in IE)

Set-Cookie: flash=%7B%22error%22%3A%22test123%22%7D; domain=; path=/

While this PR renders...

Set-Cookie: flash=%7B%22error%22%3A%22test123%22%7D; path=/

@pboling
Copy link
Owner

pboling commented Sep 17, 2015

Seems legit. 👍

@ndreckshage
Copy link
Contributor Author

@pboling any chance this can get merged?

@pboling
Copy link
Owner

pboling commented Sep 28, 2015

Yeah. Merging.

pboling added a commit that referenced this pull request Sep 28, 2015
If domain is not set, do not force as empty string. Breaks IE.
@pboling pboling merged commit 4f7df9e into pboling:master Sep 28, 2015
@pboling
Copy link
Owner

pboling commented Sep 28, 2015

Released in 0.3.4: https://rubygems.org/gems/cacheable_flash

@ndreckshage
Copy link
Contributor Author

Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants