Skip to content

Commit

Permalink
httpx: use "proxy" argument instead of deprecated "proxies"
Browse files Browse the repository at this point in the history
  • Loading branch information
lilydjwg committed Apr 19, 2024
1 parent 61b3705 commit f1ff604
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nvchecker/httpclient/httpx_httpclient.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# MIT licensed
# Copyright (c) 2020 lilydjwg <[email protected]>, et al.
# Copyright (c) 2020-2022,2024 lilydjwg <[email protected]>, et al.

from typing import Dict, Optional, Tuple

Expand Down Expand Up @@ -34,7 +34,7 @@ async def request_impl(
client = httpx.AsyncClient(
timeout = httpx.Timeout(self.timeout, pool=None),
http2 = True,
proxies = {'all://': proxy},
proxy = proxy,
verify = verify_cert,
)
self.clients[(proxy, verify_cert)] = client
Expand Down

0 comments on commit f1ff604

Please sign in to comment.