Skip to content

Wrong expectation for default Content-type on POST requests #200

Open
@joyously

Description

it("sets Content-type header for POST if not provided", function () {

This test case is faulty. Not all POST requests should have the same default Content-type.
If you look at this example, and try to code that with fetch instead, it won't work correctly (file is not uploaded).
This covers up a bug with fetch.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions