docker: snapshot

This commit is contained in:
k
2024-10-17 19:53:00 +02:00
parent 608ccafc70
commit 7dac857135
8 changed files with 21 additions and 25 deletions

View File

@@ -2,7 +2,9 @@ use std::path::Path;
#[derive(PartialEq, Eq)]
pub enum Extension {
#[allow(clippy::upper_case_acronyms)]
CSV,
#[allow(clippy::upper_case_acronyms)]
JSON,
}

View File

@@ -34,8 +34,6 @@ pub trait HeaderMapUtils {
fn insert_cache_control_revalidate(&mut self, max_age: u64, stale_while_revalidate: u64);
fn insert_last_modified(&mut self, date: DateTime<Utc>);
fn insert_content_disposition_attachment(&mut self);
fn insert_content_type(&mut self, path: &Path);
fn insert_content_type_image_icon(&mut self);
fn insert_content_type_image_jpeg(&mut self);
@@ -184,10 +182,6 @@ impl HeaderMapUtils for HeaderMap {
);
}
fn insert_content_disposition_attachment(&mut self) {
self.insert(header::CONTENT_DISPOSITION, "attachment".parse().unwrap());
}
fn insert_content_type_application_json(&mut self) {
self.insert(header::CONTENT_TYPE, "application/json".parse().unwrap());
}