Do not append a second slash when no public path is set

This commit is contained in:
HeapUnderflow 2022-10-12 17:42:42 +02:00
parent a404f9a997
commit cfd494f80d
No known key found for this signature in database
GPG key ID: 6BDB4D05427A70A2

View file

@ -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")]