Skip to content

Commit

Permalink
fix request path
Browse files Browse the repository at this point in the history
  • Loading branch information
melvyn2 committed Aug 9, 2021
1 parent bb2f0d7 commit fc89e78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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![],
Expand All @@ -149,7 +149,7 @@ fn main() {
};
};

let xz_name = request.url().drain(9..).collect::<String>() + ".xz";
let xz_name = request.url().drain(6..).collect::<String>() + ".xz";
let path = (&runconfig.paths)
.iter()
.map(|path| path.join(&xz_name))
Expand Down

0 comments on commit fc89e78

Please sign in to comment.