diff options
author | Jikstra <34889164+Jikstra@users.noreply.github.com> | 2022-01-04 17:08:03 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-04 17:08:03 +0000 |
commit | 48f192e3499ee9609660a3e8bfcba22cc4a93ee8 (patch) | |
tree | 225f5481bd64bcabb8382279e1e466f0f3f68f58 /src | |
parent | Merge branch 'feat_route_prefix' of github.com:Jikstra/miniserve into feat_ro... (diff) | |
download | miniserve-48f192e3499ee9609660a3e8bfcba22cc4a93ee8.tar.gz miniserve-48f192e3499ee9609660a3e8bfcba22cc4a93ee8.zip |
Apply alimjays suggestion
Co-authored-by: Ali MJ Al-Nasrawy <alimjalnasrawy@gmail.com>
Diffstat (limited to '')
-rw-r--r-- | src/config.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/config.rs b/src/config.rs index 94e232f..b163e96 100644 --- a/src/config.rs +++ b/src/config.rs @@ -132,7 +132,6 @@ impl MiniserveConfig { }; let route_prefix = match (args.route_prefix, args.random_route) { - (Some(prefix), _) if prefix.starts_with('/') => prefix, (Some(prefix), _) => format!("/{}", prefix.trim_matches('/')), (_, true) => format!("/{}", nanoid::nanoid!(6, &ROUTE_ALPHABET)), _ => "".to_owned(), |