From dcbd23a6fcaae6507fc048d441fae27189a51992 Mon Sep 17 00:00:00 2001 From: raphjaph Date: Mon, 11 Dec 2023 23:05:54 -0500 Subject: [PATCH] quick fix --- src/subcommand/server.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/subcommand/server.rs b/src/subcommand/server.rs index f826462d36..85345b3fca 100644 --- a/src/subcommand/server.rs +++ b/src/subcommand/server.rs @@ -1059,9 +1059,7 @@ impl Server { if let Some(content_encoding) = inscription.content_encoding() { if accept_encoding.is_acceptable(&content_encoding) { headers.insert(header::CONTENT_ENCODING, content_encoding); - } else if server_config.decompress - && content_encoding == "br" - { + } else if server_config.decompress && content_encoding == "br" { let Some(body) = inscription.into_body() else { return Ok(None); };