Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle data={"key": [None|int|float|bool]} cases. #1539

Merged
merged 5 commits into from
Mar 26, 2021

Conversation

tomchristie
Copy link
Member

Closes #1500

Allow integers, floats, booleans, and None as valid values for URLEncoded and Multipart content.

Use "true" and "false" string literal for booleans. "" for the None case. And str(value) for anything else.

Copy link
Member

@florimondmanca florimondmanca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sweet. :-)

httpx/_utils.py Outdated Show resolved Hide resolved
Co-authored-by: Florimond Manca <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Form-encoded data with None as the value gets passed as string "None"
2 participants