Merge pull request #5444 from electron/expiration-date

Fix `expirationDate` not showing for persistent cookies
This commit is contained in:
Cheng Zhao 2016-05-08 15:13:36 +09:00
commit b358dff689

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();
}