Set expirationDate for persistent cookie

This commit is contained in:
Cheng Zhao 2016-05-08 14:38:07 +09:00
parent b05fa2ed5b
commit e24ce97731

View file

@ -47,7 +47,7 @@ struct Converter<net::CanonicalCookie> {
dict.Set("secure", val.IsSecure());
dict.Set("httpOnly", val.IsHttpOnly());
dict.Set("session", !val.IsPersistent());
if (!val.IsPersistent())
if (val.IsPersistent())
dict.Set("expirationDate", val.ExpiryDate().ToDoubleT());
return dict.GetHandle();
}