Save a cookie when the expiration is unset#5
Save a cookie when the expiration is unset#5gottreu wants to merge 1 commit intolibwww-perl:masterfrom
Conversation
The behavior of HTTP::Cookies::Netscape is different than HTTP::Cookies' when saving and loading cookies that lack an explicit expiration.
|
I was running into this very same issue today: my cookies just didn't end up in the file written by HTTP::Cookies::Netscape::save(), and thought I was doing something wrong, only to discover that
Gisle, please merge or fix on next release. |
|
Is it possible to get a test for this? |
|
Sorry, Olaf, can't elaborate on my earlier comment easily. I grep'ed through my repos to see where I had the issue but couldn't find it anymore (to fabricate a proper test). |
|
@isync thanks for looking into this. We're trying to merge the easy stuff first. I'll put this on hold until we have a test for it, I think. |
The behavior of HTTP::Cookies::Netscape is different than HTTP::Cookies'
when saving and loading cookies that lack an explicit expiration.
HTTP::Cookies::Netscape now mimics curl's behavior by using 0 (as opposed to an empty string) to indicate an unset expiration date.