feat: remove unupdated version from headers

This commit is contained in:
Compositr 2024-11-04 11:09:35 +11:00
parent d8f5302c08
commit bf02adeb33
Signed by: compositr
GPG key ID: 91E3DE20129A0B4A

View file

@ -50,7 +50,7 @@ fn send_response(mut stream: TcpStream, status: u16, body: Body) -> UnitOrBoxedE
let mut response = format!("HTTP/1.1 {}\r\n", status_line); let mut response = format!("HTTP/1.1 {}\r\n", status_line);
// Headers // Headers
response.push_str("Server: luciders/0.1.0\r\n"); response.push_str("Server: luciders\r\n");
response.push_str("Cache-Control: immutable, public, max-age=604800\r\n"); response.push_str("Cache-Control: immutable, public, max-age=604800\r\n");
// CORS // CORS
response.push_str("Access-Control-Allow-Origin: *\r\n"); response.push_str("Access-Control-Allow-Origin: *\r\n");