Skip to content

Commit

Permalink
fix: httpx proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
Nemo2011 committed Nov 16, 2024
1 parent 85ca8c7 commit c91075f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bilibili_api/utils/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -884,8 +884,7 @@ def get_session() -> httpx.AsyncClient:
if session is None or last_proxy != settings.proxy:
if settings.proxy != "":
last_proxy = settings.proxy
proxies = {"all://": settings.proxy}
session = httpx.AsyncClient(proxies=proxies, timeout=settings.timeout) # type: ignore
session = httpx.AsyncClient(proxy=settings.proxy, timeout=settings.timeout) # type: ignore
else:
last_proxy = ""
session = httpx.AsyncClient(timeout=settings.timeout)
Expand Down

0 comments on commit c91075f

Please sign in to comment.