Closed lvjunling closed 4 years ago
content-type
if it was set by you manually. witch it most likely didcontent-type
$.ajax({
url: '',
data: formData,
processData: false,
contentType: false
});
Maybe you can provide a small reproducible jsfiddle or show me some code how you use it?
reason why our patched xhr.send
method don't set the content-type
is cuz there is no way to get/delete/override request headers that have been set earlier by xhr.setRequestHeader
so it will only append and send multiple headers with same name/value
when i include formdata-polyfill@3.0.19, i found use new formData the xmlhttprequest content-type be text/plain