summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-05-30 20:39:43 +0200
committermetamuffin <metamuffin@disroot.org>2024-05-30 20:39:43 +0200
commit6d0bac25aa3f118de34a9f05d939f60d80f550a5 (patch)
treee3181e169ca73c35a89261e307858dbbfca13659
parent2b64fc57bbed04dd8249afcbbc6ac6849e05ba36 (diff)
downloadgnix-6d0bac25aa3f118de34a9f05d939f60d80f550a5.tar
gnix-6d0bac25aa3f118de34a9f05d939f60d80f550a5.tar.bz2
gnix-6d0bac25aa3f118de34a9f05d939f60d80f550a5.tar.zst
cookie set max-age incorrectly
-rw-r--r--src/modules/auth/cookie.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/auth/cookie.rs b/src/modules/auth/cookie.rs
index 4615938..ed8c889 100644
--- a/src/modules/auth/cookie.rs
+++ b/src/modules/auth/cookie.rs
@@ -99,7 +99,7 @@ impl Node for CookieAuth {
let mut cookie_opts = String::new();
if let Some(e) = self.expire {
- write!(cookie_opts, "; Expire={e}").unwrap();
+ write!(cookie_opts, "; Max-Age={e}").unwrap();
}
if self.secure {
write!(cookie_opts, "; Secure").unwrap();