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:
|
if (jsonFetchOptions.body !== undefined) { |
|
parsedOptions.body = JSON.stringify(jsonFetchOptions.body); |
|
parsedOptions.headers['Content-Type'] = 'application/json'; |
|
} |
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
bodyas a form-encoded string:json-fetch/src/get_request_options/index.js
Lines 10 to 13 in 5457157