Skip to content

support non-json request bodies #18

@bobzoller

Description

@bobzoller

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';
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions