Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
bymoye authored Jul 29, 2024
1 parent 026897f commit 2230662
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blacksheep/server/compression.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def _is_handled_type(content_type) -> bool:
return any(_type in content_type for _type in self.handled_types)

def is_handled_encoding() -> bool:
return b"gzip" in (request.get_first_header(b"accept-encoding") or "")
return b"gzip" in (request.get_first_header(b"accept-encoding") or b"")

def is_handled_response_content() -> bool:
if response is None or response.content is None:
Expand Down

0 comments on commit 2230662

Please sign in to comment.