Skip to content

Automatically set Content-Type header for FormData body type#234

Merged
g105b merged 2 commits intomasterfrom
233-formdata-x-www-form-urlencoded
Mar 8, 2026
Merged

Automatically set Content-Type header for FormData body type#234
g105b merged 2 commits intomasterfrom
233-formdata-x-www-form-urlencoded

Conversation

@g105b
Copy link
Member

@g105b g105b commented Mar 8, 2026

Closes #233

If FormData is passed as body, it's serialised to a URL-encoded string, written to an internal Stream and the Content-Type header is set to application/x-www-form-urlencoded if not already present.

@g105b g105b merged commit 254554c into master Mar 8, 2026
17 checks passed
@g105b g105b deleted the 233-formdata-x-www-form-urlencoded branch March 8, 2026 18:33
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.

FormData to send data using x-www-form-urlencoded

1 participant