fix: spelling of header

This commit is contained in:
Compositr 2024-11-02 21:09:35 +11:00
parent e58123f496
commit da219bd9f9

View file

@ -54,7 +54,7 @@ fn send_response(mut stream: TcpStream, status: u16, body: Body) -> UnitOrBoxedE
response.push_str("Cache-Control: immutable, public, max-age=604800\r\n");
// CORS
response.push_str("Access-Control-Allow-Origin: *\r\n");
response.push_str("Access-Control-Allow-Metods: GET\r\n");
response.push_str("Access-Control-Allow-Methods: GET\r\n");
response.push_str(&format!(
"Content-Length: {}\r\n",
match &body {