Commits

zsp042 committed c519bf9 Draft

update on line

Comments (0)

Files changed (1)

             expires = email.utils.formatdate(
                 timestamp, localtime=False, usegmt=True
             )
-        new_cookie[name]['expires'] = expires
     else:
-        new_cookie[name]['expires'] = 'Tue, 01 Jan 2030 00:00:00 GMT'
-
+        expires  = 'Tue, 01 Jan 2030 00:00:00 GMT'
+    morsel['expires'] = expires
 
     if path:
         morsel["path"] = path