]> git.scottworley.com Git - voter/blobdiff - src/main.rs
Release 0.2.6
[voter] / src / main.rs
index 303393c150dab17af457194ab9501d6865821d98..f79d35368a7f287972bba551e95b1270bad2acbc 100644 (file)
@@ -1,3 +1,9 @@
+// voter: A simple CGI vote recorder, approval-voting-style
+//
+// This program is free software: you can redistribute it and/or modify it
+// under the terms of the GNU Affero General Public License as published
+// by the Free Software Foundation, version 3.
+
 use rand::prelude::*;
 use std::collections::{HashMap, HashSet};
 use std::io::prelude::*;
 use rand::prelude::*;
 use std::collections::{HashMap, HashSet};
 use std::io::prelude::*;
@@ -92,7 +98,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(),