8000 fix: remove deletion of Content-Type from headers · darth-coder-js/axios@24b44a6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 24b44a6

Browse files
committed
fix: remove deletion of Content-Type from headers
1 parent 199c8aa commit 24b44a6

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

lib/adapters/xhr.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@ module.exports = function xhrAdapter(config) {
1515
var requestHeaders = config.headers;
1616
var responseType = config.responseType;
1717

18-
if (utils.isFormData(requestData)) {
19-
delete requestHeaders['Content-Type']; // Let the browser set it
20-
}
21-
2218
var request = new XMLHttpRequest();
2319

2420
// HTTP basic authentication

0 commit comments

Comments
 (0)
0