From 1a4683eb7328e6e8e2969a2f9274f3d56ec5046a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=B8=E8=8A=B3=E6=BA=90?= Date: Tue, 19 Mar 2024 20:49:30 +0800 Subject: [PATCH] time unit of cookie's max-age is actually millisecond MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 司芳源 --- src/use_cookie.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/use_cookie.rs b/src/use_cookie.rs index 575e2ae..af634a2 100644 --- a/src/use_cookie.rs +++ b/src/use_cookie.rs @@ -373,7 +373,7 @@ where /// Options for [`use_cookie_with_options`]. #[derive(DefaultBuilder)] pub struct UseCookieOptions { - /// [`Max-Age` of the cookie](https://tools.ietf.org/html/rfc6265#section-5.2.2) in seconds. The returned signal will turn to `None` after the max age is reached. + /// [`Max-Age` of the cookie](https://tools.ietf.org/html/rfc6265#section-5.2.2) in milliseconds. The returned signal will turn to `None` after the max age is reached. /// Default: `None` /// /// > The [cookie storage model specification](https://tools.ietf.org/html/rfc6265#section-5.3) states