Skip to content

Commit 243234b

Browse files
committed
Fixing linter issues
1 parent 5877651 commit 243234b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

arangoasync/connection.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,10 @@ async def send_request(self, request: Request) -> Response:
163163
):
164164
request.data = self._compression.compress(request.data)
165165
request.headers["content-encoding"] = self._compression.content_encoding()
166-
if self._compression.accept_encoding() is not None:
167-
request.headers["accept-encoding"] = self._compression.accept_encoding()
166+
167+
accept_encoding: str | None = self._compression.accept_encoding()
168+
if accept_encoding is not None:
169+
request.headers["accept-encoding"] = accept_encoding
168170

169171
if self._auth:
170172
request.auth = self._auth

0 commit comments

Comments
 (0)