]> git.scottworley.com Git - voter/commitdiff
Set-Cookie flags are ;-separated
authorScott Worley <scottworley@scottworley.com>
Thu, 24 Nov 2022 00:16:05 +0000 (16:16 -0800)
committerScott Worley <scottworley@scottworley.com>
Thu, 24 Nov 2022 00:16:05 +0000 (16:16 -0800)
src/main.rs

index 303393c150dab17af457194ab9501d6865821d98..f75557e95aa67f7bb9fc5fb98ebd8b8f67b743f6 100644 (file)
@@ -92,7 +92,7 @@ fn set_cookie(mut response: cgi::Response, path: &str) -> Result<cgi::Response,
                 COOKIE_NAME,
                 b"=",
                 &make_random_id(),
                 COOKIE_NAME,
                 b"=",
                 &make_random_id(),
-                b"; Secure HttpOnly SameSite=Strict Max-Age=30000000 Path=",
+                b"; Secure; HttpOnly; SameSite=Strict; Max-Age=30000000; Path=",
                 path.as_bytes(),
             ]
             .concat(),
                 path.as_bytes(),
             ]
             .concat(),