diff options
Diffstat (limited to 'src/config.rs')
-rw-r--r-- | src/config.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config.rs b/src/config.rs index 4b9d2dc..94e232f 100644 --- a/src/config.rs +++ b/src/config.rs @@ -133,7 +133,7 @@ impl MiniserveConfig { let route_prefix = match (args.route_prefix, args.random_route) { (Some(prefix), _) if prefix.starts_with('/') => prefix, - (Some(prefix), _) => format!("/{}", prefix), + (Some(prefix), _) => format!("/{}", prefix.trim_matches('/')), (_, true) => format!("/{}", nanoid::nanoid!(6, &ROUTE_ALPHABET)), _ => "".to_owned(), }; |