2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-17 19:21:29 +03:00

Revert "Fixed isFormData predicate; (#4413)" (#4472)

This reverts commit 73e3bdb883.
This commit is contained in:
Jay
2022-02-13 15:47:38 +02:00
committed by GitHub
parent 447a24dfc3
commit d660e29c1a
6 changed files with 15 additions and 40 deletions
+1 -3
View File
@@ -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)) {