Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Don't delete Content-Type when formData #767

Description

@ccqgithub

i use the package come a issue with react-native .. the server can not get the contet-type correct !!

i found it in code

if (utils.isFormData(requestData)) {
  delete requestHeaders['Content-Type']; // Let the browser set it
}

why u will delete it when i manual setting it ? and the react-native not set it automatic。

can remove it ? or add a option to prevent remove ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions