Skip to content

Commit

Permalink
fix: remove deletion of Content-Type from headers
Browse files Browse the repository at this point in the history
  • Loading branch information
norbertsongin committed May 7, 2021
1 parent 199c8aa commit 24b44a6
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/adapters/xhr.js
Expand Up @@ -15,10 +15,6 @@ module.exports = function xhrAdapter(config) {
var requestHeaders = config.headers;
var responseType = config.responseType;

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

var request = new XMLHttpRequest();

// HTTP basic authentication
Expand Down

0 comments on commit 24b44a6

Please sign in to comment.