mirror of
https://github.com/lilydjwg/nvchecker.git
synced 2025-03-10 06:14:02 +00:00
httpx_httpclient: pass None when params is empty
see https://github.com/encode/httpx/discussions/3428
This commit is contained in:
parent
c7f571ae79
commit
af7acde251
1 changed files with 2 additions and 1 deletions
|
@ -49,7 +49,8 @@ class HttpxSession(BaseSession):
|
||||||
method, url, json = json, content = body,
|
method, url, json = json, content = body,
|
||||||
headers = headers,
|
headers = headers,
|
||||||
follow_redirects = follow_redirects,
|
follow_redirects = follow_redirects,
|
||||||
params = params,
|
# httpx checks for None but not ()
|
||||||
|
params = params or None,
|
||||||
)
|
)
|
||||||
err_cls: Optional[type] = None
|
err_cls: Optional[type] = None
|
||||||
if r.status_code >= 500:
|
if r.status_code >= 500:
|
||||||
|
|
Loading…
Add table
Reference in a new issue