Skip to content

Commit

Permalink
Merge pull request #5444 from electron/expiration-date
Browse files Browse the repository at this point in the history
Fix `expirationDate` not showing for persistent cookies
  • Loading branch information
zcbenz committed May 8, 2016
2 parents 1dcbd35 + e24ce97 commit b358dff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion atom/browser/api/atom_api_cookies.cc
Expand Up @@ -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();
}
Expand Down

0 comments on commit b358dff

Please sign in to comment.