From e24ce97731668101378e5b951479579f0af3d494 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Sun, 8 May 2016 14:38:07 +0900 Subject: [PATCH] Set expirationDate for persistent cookie --- atom/browser/api/atom_api_cookies.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/atom/browser/api/atom_api_cookies.cc b/atom/browser/api/atom_api_cookies.cc index 8698b43485bf..994fe6977f2a 100644 --- a/atom/browser/api/atom_api_cookies.cc +++ b/atom/browser/api/atom_api_cookies.cc @@ -47,7 +47,7 @@ struct Converter { 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(); }