From cfd494f80dae4cc9da5aad491f632c07861dd053 Mon Sep 17 00:00:00 2001 From: HeapUnderflow Date: Wed, 12 Oct 2022 17:42:42 +0200 Subject: [PATCH] Do not append a second slash when no public path is set --- src/args.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/args.rs b/src/args.rs index 37b6461..ac5b525 100644 --- a/src/args.rs +++ b/src/args.rs @@ -51,7 +51,7 @@ pub struct Args { #[clap(long, env="MICROBIN_PURE_HTML")] pub pure_html: bool, - #[clap(long, env="MICROBIN_PUBLIC_PATH", default_value_t = PublicUrl(String::from("/")))] + #[clap(long, env="MICROBIN_PUBLIC_PATH", default_value_t = PublicUrl(String::from("")))] pub public_path: PublicUrl, #[clap(long, env="MICROBIN_READONLY")]