robots.txt fix

This commit is contained in:
CatAClock 2025-07-04 18:30:15 -07:00
parent 269f9b8a8d
commit 419efe359e

View file

@ -101,7 +101,7 @@ fn main() {
Response::from_file("font/woff", File::open("src/HTTP/Perfect DOS VGA 437.woff").unwrap()).with_status_code(200)
},
// Robots.
(GET) ["robots.txt"] => {
(GET) ["/robots.txt"] => {
Response::from_file("text/plain", File::open("src/HTTP/robots.txt").unwrap()).with_status_code(200)
},
// Actual Web Pages.