diff options
author | Lzzzt <liuzitao0123@gmail.com> | 2025-03-03 06:45:12 +0000 |
---|---|---|
committer | Lzzzt <liuzitao0123@gmail.com> | 2025-03-03 06:49:25 +0000 |
commit | 6d6d836d2dbe7b37bc46311d0535c14a25264ac0 (patch) | |
tree | 6b88522390c3dfcd79030db6b467b5a44087eb9f /src/config.rs | |
parent | Show File Size in Bytes (diff) | |
download | miniserve-6d6d836d2dbe7b37bc46311d0535c14a25264ac0.tar.gz miniserve-6d6d836d2dbe7b37bc46311d0535c14a25264ac0.zip |
make the option effect raw mode
Signed-off-by: Lzzzt <liuzitao0123@gmail.com>
Diffstat (limited to 'src/config.rs')
-rw-r--r-- | src/config.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/config.rs b/src/config.rs index 03d3f4b..9a470ef 100644 --- a/src/config.rs +++ b/src/config.rs @@ -159,7 +159,7 @@ pub struct MiniserveConfig { pub webdav_enabled: bool, /// If enabled, will show in exact byte size of the file - pub show_size_in_byte: bool, + pub show_exact_bytes: bool, /// If set, use provided rustls config for TLS #[cfg(feature = "tls")] @@ -323,7 +323,7 @@ impl MiniserveConfig { webdav_enabled: args.enable_webdav, tls_rustls_config: tls_rustls_server_config, compress_response: args.compress_response, - show_size_in_byte: args.show_size_in_byte, + show_exact_bytes: args.show_exact_bytes, }) } } |