-
Notifications
You must be signed in to change notification settings - Fork 103
Closed
Labels
bugSomething isn't workingSomething isn't workingcompatCompatibility issueCompatibility issuehas fixA fix is PR'd or merged, but not yet releasedA fix is PR'd or merged, but not yet released
Description
When you pass FormData objects as the data parameter the library sends the request as application/json.
The problem is here:
if (data && typeof data === 'object') {
data = JSON.stringify(data);
customHeaders['Content-Type'] = 'application/json';
}
as typeof new FormData() === 'object'.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingcompatCompatibility issueCompatibility issuehas fixA fix is PR'd or merged, but not yet releasedA fix is PR'd or merged, but not yet released