Skip to content

Commit

Permalink
Revert "Fixing overwrite Blob/File type as Content-Type in browser. (#…
Browse files Browse the repository at this point in the history
…1773)" (#3289)

This reverts commit f3cc053.
  • Loading branch information
Gerhut committed Oct 13, 2020
1 parent 6d05b96 commit 9a78465
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions lib/adapters/xhr.js
Expand Up @@ -18,13 +18,6 @@ module.exports = function xhrAdapter(config) {
delete requestHeaders['Content-Type']; // Let the browser set it
}

if (
(utils.isBlob(requestData) || utils.isFile(requestData)) &&
requestData.type
) {
delete requestHeaders['Content-Type']; // Let the browser set it
}

var request = new XMLHttpRequest();

// HTTP basic authentication
Expand Down

0 comments on commit 9a78465

Please sign in to comment.