You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
httpx is deleting url query parameters that do not explicitly specify a value #2331
@tomchristie you're right if use key-value pair in url, it's work. But what to do in case of query param without value (only key). In this discussion I found the opinion, that query can contain query param wiithout value
It appears that httpx is deleting url query parameters that do not explicitly specify a value.
To determine if your assessment here is correct, try the same example but with foobar=something.
It works fine? That isn't related to the bug I'm reporting however. Have you tried running my example? Url parameters that do not have an explicit value are being deleted.
Activity
blablatdinov commentedon Aug 5, 2022
Good afternoon!
This case reproduce in
httpx.Client. If such behaviour is bug, I want to fix itlovelydinosaur commentedon Aug 5, 2022
To determine if your assessment here is correct, try the same example but with
foobar=something.blablatdinov commentedon Aug 5, 2022
@tomchristie you're right if use key-value pair in url, it's work. But what to do in case of query param without value (only key). In this discussion I found the opinion, that query can contain query param wiithout value
fastily commentedon Aug 6, 2022
It works fine? That isn't related to the bug I'm reporting however. Have you tried running my example? Url parameters that do not have an explicit value are being deleted.
lovelydinosaur commentedon Aug 10, 2022
Great, so we've determined that your assessment is correct. This is specifically occurring for parameters without a value.
So, yes, that looks broken to me.
Confirmed this to myself with...