Skip to content

Commit

Permalink
Fix proxy for httpx < 0.26.0
Browse files Browse the repository at this point in the history
  • Loading branch information
itssimon committed Dec 10, 2024
1 parent 5f59083 commit acf1c36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apitally/client/client_asyncio.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def get_http_client(self) -> httpx.AsyncClient:
# `proxy` parameter was added in version 0.26.0
return httpx.AsyncClient(base_url=self.hub_url, timeout=REQUEST_TIMEOUT, proxy=self.proxy)
else:
return httpx.AsyncClient(base_url=self.hub_url, timeout=REQUEST_TIMEOUT)
return httpx.AsyncClient(base_url=self.hub_url, timeout=REQUEST_TIMEOUT, proxies=self.proxy)

def start_sync_loop(self) -> None:
self._stop_sync_loop = False
Expand Down

0 comments on commit acf1c36

Please sign in to comment.