diff options
author | Sven-Hendrik Haase <svenstaro@gmail.com> | 2021-04-18 03:42:14 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-18 03:42:14 +0000 |
commit | f645c2b7f74bbebf4051fd19e568c6092822c118 (patch) | |
tree | 46ff56811ce1af9914a3743e09c814432f3dffaf /src/archive.rs | |
parent | Add CHANGELOG entry for wrapping breadcrumbs at any char (diff) | |
parent | Change naming of uncompressed/compressed tarballs (diff) | |
download | miniserve-f645c2b7f74bbebf4051fd19e568c6092822c118.tar.gz miniserve-f645c2b7f74bbebf4051fd19e568c6092822c118.zip |
Merge pull request #492 from deantvv/tar-and-tar-archive
Separate tar archive and tar flags
Diffstat (limited to 'src/archive.rs')
-rw-r--r-- | src/archive.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/archive.rs b/src/archive.rs index 4df3a31..e53aea8 100644 --- a/src/archive.rs +++ b/src/archive.rs @@ -53,9 +53,9 @@ impl CompressionMethod { } } - pub fn is_enabled(self, tar_enabled: bool, zip_enabled: bool) -> bool { + pub fn is_enabled(self, tar_enabled: bool, tar_gz_enabled: bool, zip_enabled: bool) -> bool { match self { - CompressionMethod::TarGz => tar_enabled, + CompressionMethod::TarGz => tar_gz_enabled, CompressionMethod::Tar => tar_enabled, CompressionMethod::Zip => zip_enabled, } |