Skip to content

Commit

Permalink
quick fix
Browse files Browse the repository at this point in the history
  • Loading branch information
raphjaph committed Dec 12, 2023
1 parent 6f71796 commit dcbd23a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/subcommand/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};
Expand Down

0 comments on commit dcbd23a

Please sign in to comment.