From 419efe359eec924d586b9b9c55b5bceac01c011c Mon Sep 17 00:00:00 2001 From: CatAClock Date: Fri, 4 Jul 2025 18:30:15 -0700 Subject: [PATCH] robots.txt fix --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 6ec2ba0..0053060 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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.