-
-
Notifications
You must be signed in to change notification settings - Fork 997
Closed as not planned
Description
In version 0.28.0, query params are never merged.
import httpx
client = httpx.Client()
request = client.build_request(
"GET", "https://httpbin.org/get?param=default", params={"foo": "bar"}
)
print(request.url) # This will be `https://httpbin.org/get?foo=bar`The query string in the request url will be ignored. It seems this is caused by the pr #3364. Params are replaced instead of merged when parsing.
Line 301 in 15e21e9
| query = kwargs.get("query", url_dict["query"]) |
Related discussion #3428
browniebroke, tmck-code, ndelon, atomiechen, AS7RIDENIED and 4 more
Metadata
Metadata
Assignees
Labels
No labels