Skip to content

Commit d209407

Browse files
authored
Revert "Fixing overwrite Blob/File type as Content-Type in browser. (axios#1773)"
This reverts commit f3cc053.
1 parent e8c6e19 commit d209407

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

lib/adapters/xhr.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,6 @@ module.exports = function xhrAdapter(config) {
1818
delete requestHeaders['Content-Type']; // Let the browser set it
1919
}
2020

21-
if (
22-
(utils.isBlob(requestData) || utils.isFile(requestData)) &&
23-
requestData.type
24-
) {
25-
delete requestHeaders['Content-Type']; // Let the browser set it
26-
}
27-
2821
var request = new XMLHttpRequest();
2922

3023
// HTTP basic authentication

0 commit comments

Comments
 (0)