aboutsummaryrefslogtreecommitdiff
path: root/src/https.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2021-12-09 16:19:41 +0100
committerAlex Auvolat <alex@adnab.me>2021-12-09 16:19:41 +0100
commit3f2a52dc8e7819f6983c7ae68fb5900fe59d14b7 (patch)
treea33c9f001b45791daf8698414efa2ac980e090cc /src/https.rs
parent87a88931b6307aac9992412bf9cdf71fb31cadcc (diff)
downloadtricot-3f2a52dc8e7819f6983c7ae68fb5900fe59d14b7.tar.gz
tricot-3f2a52dc8e7819f6983c7ae68fb5900fe59d14b7.zip
cargo fmtdocker-23
Diffstat (limited to 'src/https.rs')
-rw-r--r--src/https.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/https.rs b/src/https.rs
index 148f15a..99900d0 100644
--- a/src/https.rs
+++ b/src/https.rs
@@ -219,7 +219,11 @@ fn try_compress(
Some((mime_type, _params)) => mime_type,
None => ct_str,
};
- if !https_config.compress_mime_types.iter().any(|x| x == mime_type) {
+ if !https_config
+ .compress_mime_types
+ .iter()
+ .any(|x| x == mime_type)
+ {
return Ok(response);
}
}