From fc89e789333ed0069d90754d86d9d671d1e638c8 Mon Sep 17 00:00:00 2001 From: melvyn2 Date: Mon, 9 Aug 2021 09:30:43 -0700 Subject: [PATCH] fix request path --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index bbd550a..e44992c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -140,7 +140,7 @@ fn main() { upgrade: None, }; }; - if !request.url().starts_with("/tf/maps/") { + if !request.url().starts_with("/maps/") { return Response { status_code: 404, headers: vec![], @@ -149,7 +149,7 @@ fn main() { }; }; - let xz_name = request.url().drain(9..).collect::() + ".xz"; + let xz_name = request.url().drain(6..).collect::() + ".xz"; let path = (&runconfig.paths) .iter() .map(|path| path.join(&xz_name))