Skip to content
Discussion options

You must be logged in to vote

Yes, when you send FormData in a request, Ky automatically removes any default Content-Type header (including your instance's application/json), allowing the browser to set the correct multipart/form-data header with the proper boundary.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@threes-was-taken
Comment options

@sholladay
Comment options

@threes-was-taken
Comment options

Answer selected by sindresorhus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants