diff options
author | Quentin <quentin@dufour.io> | 2023-11-29 16:09:56 +0000 |
---|---|---|
committer | Quentin <quentin@dufour.io> | 2023-11-29 16:09:56 +0000 |
commit | b04c2bfb0a5776ddcf8c0bab23dd1f800e3a0df3 (patch) | |
tree | 8b0eda30cba5b2c62810a2cd71b7a93095e20205 /src/main.rs | |
parent | 14325395f6b059a317df738657edec47599c291f (diff) | |
parent | b76b6dcbcc47ebc61848389a6b0d5d4e8d8cde48 (diff) | |
download | tricot-b04c2bfb0a5776ddcf8c0bab23dd1f800e3a0df3.tar.gz tricot-b04c2bfb0a5776ddcf8c0bab23dd1f800e3a0df3.zip |
Merge pull request 'New directive `tricot-add-redirect <match-prefix> <redirect-prefix> [301|302|303|307]`' (#10) from redirect into main
Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/tricot/pulls/10
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index 2e08495..93abcca 100644 --- a/src/main.rs +++ b/src/main.rs @@ -239,7 +239,7 @@ async fn dump_config_on_change( let mut cfg_map = BTreeMap::<_, Vec<_>>::new(); for ent in cfg.entries.iter() { cfg_map - .entry((&ent.host, &ent.path_prefix)) + .entry((&ent.url_prefix.host, &ent.url_prefix.path_prefix)) .or_default() .push(ent); } |