Skip to content

Commit 3fb2643

Browse files
improves conditional reading
1 parent bfe029a commit 3fb2643

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ async def send_with_gzip(self, message: Message) -> None:
9595
self.started = True
9696
body = message.get("body", b"")
9797
more_body = message.get("more_body", False)
98-
if len(body) < (self.minimum_size and not more_body) or any(
98+
if (len(body) < (self.minimum_size and not more_body)) or any(
9999
value == b'application/octet-stream'
100100
for header, value in self.initial_message["headers"]
101101
):

0 commit comments

Comments
 (0)