Skip to content

Commit

Permalink
Set expirationDate for persistent cookie
Browse files Browse the repository at this point in the history
  • Loading branch information
zcbenz committed May 8, 2016
1 parent b05fa2e commit e24ce97
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 e24ce97

Please sign in to comment.