-
-
Notifications
You must be signed in to change notification settings - Fork 602
Closed as duplicate
Labels
bugSomething isn't workingSomething isn't workingopenapi-fetchRelevant to the openapi-fetch libraryRelevant to the openapi-fetch library
Description
openapi-fetch version
0.14.0
Description
There is a typo in the doc on how to serialize the body into URL Encoding, which may cause unwanted behavior when just copy-pasting from the docs
Reproduction
The current docs is like this
const { data, error } = await client.POST("/tokens", {
body: {
clientId: "someClientId",
clientSecret: "someClientSecret",
},
headers: {
"Content-Type": "application/x-www-form-encoded",
},
});Expected result
It should be like this
const { data, error } = await client.POST("/tokens", {
body: {
clientId: "someClientId",
clientSecret: "someClientSecret",
},
headers: {
"Content-Type": "application/x-www-form-urlencoded",
},
});
Extra
- I’m willing to open a PR (see CONTRIBUTING.md)
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingopenapi-fetchRelevant to the openapi-fetch libraryRelevant to the openapi-fetch library