My content-type header of multipart/form-data is getting replaced with another content-type. This was not an issue until I switched to v1.0.x
const api = axios.create({
headers: {
'Content-Type': 'application/json'
}
})
const formData = new FormData()
formData.append('file', file)
api.post('endpoint', formData, {
headers: {
'Content-Type': 'multipart/form-data'
}
})
However, this works:
axios({
url: 'endpoint',
method: 'post',
data: formData,
headers: {
'Content-Type': 'multipart/form-data'
}
})
This was sent with the old version, and the workaround mentioned:

And this started happening when I upgraded.
