Skip to content

Stringify request body for support of old browser versions / devices #168

Closed Answered by panva
Sv-Th asked this question in Q&A
Discussion options

You must be logged in to vote

The simplest fix for this would be to manually .toString() the body before sending the fetch. But wanted to ask your input before throwing out a pull request.

Stringifying the body prior to sending fetch would be a breaking API change due to it changing the extensibility expecatation that's available. That being said, because of said extensibility you can call stringify on the bodies before sending a fetch out yourself. That's what customFetch is for.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Sv-Th
Comment options

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