aboutsummaryrefslogtreecommitdiff
path: root/src/proxy_config.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2021-12-08 17:27:27 +0100
committerAlex Auvolat <alex@adnab.me>2021-12-08 17:27:27 +0100
commit8d47bef9d45a767fcc166d26b75fc51937116bcd (patch)
treed51526af4ebdfc076b43284f537d05ca211420d2 /src/proxy_config.rs
parentc49b2075a30460a319ce53da300e4943d45d5add (diff)
downloadtricot-8d47bef9d45a767fcc166d26b75fc51937116bcd.tar.gz
tricot-8d47bef9d45a767fcc166d26b75fc51937116bcd.zip
Fix path prefixes
Diffstat (limited to 'src/proxy_config.rs')
-rw-r--r--src/proxy_config.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/proxy_config.rs b/src/proxy_config.rs
index a15c143..29493b2 100644
--- a/src/proxy_config.rs
+++ b/src/proxy_config.rs
@@ -99,7 +99,7 @@ fn parse_tricot_tag(
}
let (host, path_prefix) = match splits[1].split_once('/') {
- Some((h, p)) => (h, Some(p.to_string())),
+ Some((h, p)) => (h, Some(format!("/{}", p))),
None => (splits[1], None),
};