mirror of
https://github.com/tenrok/axios.git
synced 2026-06-17 19:21:29 +03:00
This reverts commit 73e3bdb883.
This commit is contained in:
@@ -87,9 +87,7 @@ module.exports = function httpAdapter(config) {
|
||||
headers['User-Agent'] = 'axios/' + VERSION;
|
||||
}
|
||||
|
||||
if (utils.isFormData(data) && utils.isFunction(data.getHeaders)) {
|
||||
Object.assign(headers, data.getHeaders());
|
||||
} else if (data && !utils.isStream(data)) {
|
||||
if (data && !utils.isStream(data)) {
|
||||
if (Buffer.isBuffer(data)) {
|
||||
// Nothing to do...
|
||||
} else if (utils.isArrayBuffer(data)) {
|
||||
|
||||
Reference in New Issue
Block a user