aboutsummaryrefslogtreecommitdiffstats
path: root/src/archive.rs
diff options
context:
space:
mode:
authorSven-Hendrik Haase <svenstaro@gmail.com>2024-01-03 01:52:51 +0000
committerGitHub <noreply@github.com>2024-01-03 01:52:51 +0000
commitbb11598cbcaadaf1880958574dcf07af7c9382a2 (patch)
tree89106ebcf9113f142b90f6f4a7282826eb07c19f /src/archive.rs
parentAdd CHANGELOG entry for #1290 (diff)
parentRemove header Content-Encoding when archiving (diff)
downloadminiserve-bb11598cbcaadaf1880958574dcf07af7c9382a2.tar.gz
miniserve-bb11598cbcaadaf1880958574dcf07af7c9382a2.zip
Merge pull request #1290 from 5long/remove-content-encoding
Remove header Content-Encoding when archiving
Diffstat (limited to 'src/archive.rs')
-rw-r--r--src/archive.rs9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/archive.rs b/src/archive.rs
index bfae66e..e52fc49 100644
--- a/src/archive.rs
+++ b/src/archive.rs
@@ -2,7 +2,6 @@ use std::fs::File;
use std::io::{Cursor, Read, Write};
use std::path::{Path, PathBuf};
-use actix_web::http::header::ContentEncoding;
use libflate::gzip::Encoder;
use serde::Deserialize;
use strum::{Display, EnumIter, EnumString};
@@ -45,14 +44,6 @@ impl ArchiveMethod {
.to_string()
}
- pub fn content_encoding(self) -> ContentEncoding {
- match self {
- ArchiveMethod::TarGz => ContentEncoding::Gzip,
- ArchiveMethod::Tar => ContentEncoding::Identity,
- ArchiveMethod::Zip => ContentEncoding::Identity,
- }
- }
-
pub fn is_enabled(self, tar_enabled: bool, tar_gz_enabled: bool, zip_enabled: bool) -> bool {
match self {
ArchiveMethod::TarGz => tar_gz_enabled,