GET parameters are no longer merged in 0.28.0 #3428
Answered
by
lovelydinosaur
yan12125
asked this question in
Potential Issue
|
#3364 changes how GET parameters are handled. For this example script: import json
import httpx
print(json.dumps(httpx.get("https://httpbin.org/get?foo=bar", params={}).json()))Results before the PR: $ python t.py | jq .args
{
"foo": "bar"
}And after the PR: Is that an intentional change? If so, maybe documenting it in changelogs is better. |
Answered by
lovelydinosaur
Dec 3, 2024
Replies: 1 comment 2 replies
Yep, I think you've got the right take there. My recollection is that I noticed that the simpler refactoring would also fix a bug along the way, tho then forgot to point that out by the time I came to issue the refactoring. Unfortunately we didn't happen to have a test case covering this. https://github.com/encode/httpx/issues/3433#issuecomment-2514327255 PRs updating the CHANGELOG there would be welcome. (Possibly also including related tests) |
2 replies
Answer selected by
lovelydinosaur
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yep, I think you've got the right take there. My recollection is that I noticed that the simpler refactoring would also fix a bug along the way, tho then forgot to point that out by the time I came to issue the refactoring. Unfortunately we didn't happen to have a test case covering this.
https://github.com/encode/httpx/issues/3433#issuecomment-2514327255
PRs updating the CHANGELOG there would be welcome. (Possibly also including related tests)