Skip to content

Commit acf1c36

Browse files
committed
Fix proxy for httpx < 0.26.0
1 parent 5f59083 commit acf1c36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apitally/client/client_asyncio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def get_http_client(self) -> httpx.AsyncClient:
4848
# `proxy` parameter was added in version 0.26.0
4949
return httpx.AsyncClient(base_url=self.hub_url, timeout=REQUEST_TIMEOUT, proxy=self.proxy)
5050
else:
51-
return httpx.AsyncClient(base_url=self.hub_url, timeout=REQUEST_TIMEOUT)
51+
return httpx.AsyncClient(base_url=self.hub_url, timeout=REQUEST_TIMEOUT, proxies=self.proxy)
5252

5353
def start_sync_loop(self) -> None:
5454
self._stop_sync_loop = False

0 commit comments

Comments
 (0)