You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this commit dacc2b7 the max-age parameter is explicitly singled out to not discard, but unfortunately it introduces a bug because now we skip the main action of:
else {
push(@cur, $k=>$v);
}
Which means it never ends up in @set, and thus never ends up in %hash, which means:
my$maxage = delete$hash{'max-age'};
Is always undef.
So basically setting Max-Age=X on a cookie is completely ignored in the current HTTP::Cookies 6.1
Oof. I just got the email about it shortly before the long weekend, so didn't take the time to create a patch and matching test. Was hoping some kind soul might pick this up. 😄
Reported via email by Robert Mueller.
In this commit dacc2b7 the max-age parameter is explicitly singled out to not discard, but unfortunately it introduces a bug because now we skip the main action of:
Which means it never ends up in
@set
, and thus never ends up in%hash
, which means:Is always
undef
.So basically setting Max-Age=X on a cookie is completely ignored in the current HTTP::Cookies 6.1
Changing:
To:
Fixes it.
The text was updated successfully, but these errors were encountered: