Skip to content

Commit 5877651

Browse files
committed
BasicConnection supports authentication and compression
1 parent 8f5d576 commit 5877651

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arangoasync/connection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ 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():
166+
if self._compression.accept_encoding() is not None:
167167
request.headers["accept-encoding"] = self._compression.accept_encoding()
168168

169169
if self._auth:

0 commit comments

Comments
 (0)