Skip to content

Commit

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

This reverts commit f3cc053.
  • Loading branch information
Gerhut authored Sep 16, 2020
1 parent e8c6e19 commit d209407
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions lib/adapters/xhr.js
Original file line number Diff line number Diff line change
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 d209407

Please sign in to comment.