Skip to content

Commit

Permalink
fix httpx
Browse files Browse the repository at this point in the history
  • Loading branch information
tatsumoto-ren committed Nov 28, 2024
1 parent b6977c0 commit 0fb9fb5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion kitsunekko_tools/api_access/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class ApiResponseCode(enum.Enum):

def get_http_api_client(config: KitsuConfig) -> httpx.AsyncClient:
return httpx.AsyncClient(
proxies=config.proxy,
proxy=config.proxy,
headers=typing.cast(typing.Mapping[str, str], config.api_headers()),
timeout=config.timeout,
follow_redirects=False,
Expand Down
2 changes: 1 addition & 1 deletion kitsunekko_tools/scrapper/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def has_unvisited(self) -> bool:

def get_http_client(config: KitsuConfig) -> httpx.AsyncClient:
return httpx.AsyncClient(
proxies=config.proxy,
proxy=config.proxy,
headers=config.headers,
timeout=config.timeout,
follow_redirects=False,
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ authors = [
{ name = "Ren Tatsumoto", email = "[email protected]" },
]
dependencies = [
"httpx[socks]>=0.27",
"httpx[socks]>=0.28",
"fire>=0.6.0",
]
license = {file = "LICENSE"}
Expand Down

0 comments on commit 0fb9fb5

Please sign in to comment.