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
Allow params={'pretty':None} to send query arg withOUT an equal sign #1564
Query Parameters
requests omits params whose values are None (e.g. requests.get(..., params={"foo": None})). This is not supported by HTTPX.
IMO it would be good and fine to break requests compatibility here.
I doubt many put a no-op "foo":None entry into params when using requests and it's likely nobody has on httpx 0.x.
If the request addresses a subresource, such as ?versioning, ?location, ?acl, ?torrent, ?lifecycle, or ?versionid, append the subresource, its value if it has one, and the question mark.
It's true most apis treat ?foo like ?foo= or ?foo=true but there are apis that treat ?foo= like ?foo=false.
Yes clients probably should give query args explicit values but sometimes you want to use or test an api with a specific url, and httpx should let you construct any legal url.
This is the current requests-compatible but imo undesirable behavior:
changed the title [-]Allow params={'pretty':None} to send query arg with equal sign[/-][+]Allow params={'pretty':None} to send query arg withOUT an equal sign[/+]on Apr 10, 2021
Activity
[-]Allow params={'pretty':None} to send query arg with equal sign[/-][+]Allow params={'pretty':None} to send query arg withOUT an equal sign[/+]