mirror of
https://github.com/lilydjwg/nvchecker
synced 2025-02-10 15:37:45 +00:00
httpx: use "proxy" argument instead of deprecated "proxies"
This commit is contained in:
parent
61b3705f35
commit
f1ff604b4c
@ -1,5 +1,5 @@
|
||||
# MIT licensed
|
||||
# Copyright (c) 2020 lilydjwg <lilydjwg@gmail.com>, et al.
|
||||
# Copyright (c) 2020-2022,2024 lilydjwg <lilydjwg@gmail.com>, et al.
|
||||
|
||||
from typing import Dict, Optional, Tuple
|
||||
|
||||
@ -34,7 +34,7 @@ class HttpxSession(BaseSession):
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user