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
I'd like to use this with the bill.com API, but their API accepts form-encoded request bodies and returns json responses. This bit of code prevents me from providing the body as a form-encoded string:
seems like there's three options:
a. json-fetch doesn't care about your half-json API; use a different library
b. only JSON.stringify if body is an object (breaking change, but I would argue a standard pattern in other request libraries)
c. add rawBody or some other parameter
I'd like to use this with the bill.com API, but their API accepts form-encoded request bodies and returns json responses. This bit of code prevents me from providing the
body
as a form-encoded string:json-fetch/src/get_request_options/index.js
Lines 10 to 13 in 5457157
The text was updated successfully, but these errors were encountered: