Browse Source

Merge pull request #5444 from electron/expiration-date

Fix `expirationDate` not showing for persistent cookies
Cheng Zhao 9 years ago
parent
commit
b358dff689
1 changed files with 1 additions and 1 deletions
  1. 1 1
      atom/browser/api/atom_api_cookies.cc

+ 1 - 1
atom/browser/api/atom_api_cookies.cc

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