diff options
author | Dean Li <deantvv@gmail.com> | 2021-04-18 03:22:52 +0000 |
---|---|---|
committer | Dean Li <deantvv@gmail.com> | 2021-04-18 03:22:52 +0000 |
commit | c9506c72ff368867982d138a686648fa302b116d (patch) | |
tree | 01f25ffc462c27399fc7764f4081cd71f85b6d62 /src/listing.rs | |
parent | Separate tar archive and tar flags (diff) | |
download | miniserve-c9506c72ff368867982d138a686648fa302b116d.tar.gz miniserve-c9506c72ff368867982d138a686648fa302b116d.zip |
Change naming of uncompressed/compressed tarballs
Use following terminology:
uncompressed tarballs => `uncompressed tar archives`
compressed ones => `gz-compressed tar archives`
Diffstat (limited to 'src/listing.rs')
-rw-r--r-- | src/listing.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/listing.rs b/src/listing.rs index 868817c..cff4f9a 100644 --- a/src/listing.rs +++ b/src/listing.rs @@ -158,7 +158,7 @@ pub fn directory_listing( show_qrcode: bool, upload_route: String, tar_enabled: bool, - tar_archive_enabled: bool, + tar_gz_enabled: bool, zip_enabled: bool, dirs_first: bool, hide_version_footer: bool, @@ -331,7 +331,7 @@ pub fn directory_listing( } if let Some(compression_method) = query_params.download { - if !compression_method.is_enabled(tar_enabled, tar_archive_enabled, zip_enabled) { + if !compression_method.is_enabled(tar_enabled, tar_gz_enabled, zip_enabled) { return Ok(ServiceResponse::new( req.clone(), HttpResponse::Forbidden() @@ -414,7 +414,7 @@ pub fn directory_listing( &encoded_dir, breadcrumbs, tar_enabled, - tar_archive_enabled, + tar_gz_enabled, zip_enabled, hide_version_footer, ) |