You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ah, never mind, maybe? It seems that providing init.headers to fetch() was preventing the content-type from being added... I don't know why, that doesn't seem right to me, but using the headers option on ClientOptions worked.
openapi-react-query version
0.5.0
Description
POST
request made withopenapi-fetch
andopenapi-react-query
is missing thecontent-type
header (server expectsapplication/json
).Reproduction
My
POST
spec specifies the request asapplication/json
Which I see generates the expected types:
However, when I use the query:
The network request does not have the correct
content-type
header:Expected result
POST
request should haveContent-Type: application/json
Extra
The text was updated successfully, but these errors were encountered: