Skip to content

Commit

Permalink
httpx_httpclient: pass None when params is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
lilydjwg committed Nov 30, 2024
1 parent c7f571a commit af7acde
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nvchecker/httpclient/httpx_httpclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ async def request_impl(
method, url, json = json, content = body,
headers = headers,
follow_redirects = follow_redirects,
params = params,
# httpx checks for None but not ()
params = params or None,
)
err_cls: Optional[type] = None
if r.status_code >= 500:
Expand Down

0 comments on commit af7acde

Please sign in to comment.