mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-17 05:43:41 +00:00
Return persistent cookie expiration through the existing RPC contract
This commit is contained in:
1 parent
119fad9a94
commit
311e002e55
1 file changed
+2
@@ -467,6 +467,8 @@ class WebViewRpcPageSession {
|
|||||||
'path': cookie.path ?? '/',
|
'path': cookie.path ?? '/',
|
||||||
'secure': cookie.isSecure,
|
'secure': cookie.isSecure,
|
||||||
'httpOnly': cookie.isHttpOnly,
|
'httpOnly': cookie.isHttpOnly,
|
||||||
|
if (cookie.expiresDate != null)
|
||||||
|
'expires': DateTime.fromMillisecondsSinceEpoch(cookie.expiresDate!, isUtc: true).toIso8601String(),
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
.toList(growable: false);
|
.toList(growable: false);
|
||||||
|
|||||||
Reference in new issue
Block a user