Skip to content

Commit

Permalink
fix find route
Browse files Browse the repository at this point in the history
  • Loading branch information
Aitthi committed Oct 27, 2024
1 parent 72eb454 commit dcc395e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "easy-proxy"
version = "0.1.5"
version = "0.1.6"
edition = "2021"

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion src/config/store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ pub async fn load(
if path_type == *"Prefix" {
let mut match_path = format!("{}/{{*p}}", path.path.clone());
if path.path.clone() == *"/" {
match_path = "/{{*p}}".to_string();
match_path = "/{*p}".to_string();
}
match routes.insert(match_path, r) {
Ok(_) => {}
Expand Down

0 comments on commit dcc395e

Please sign in to comment.