mirror of
https://github.com/tenrok/axios.git
synced 2026-06-08 17:22:34 +03:00
Used instanceof to determine FormData in utils.isFormData. Fix #323.
This commit is contained in:
+1
-1
@@ -33,7 +33,7 @@ function isArrayBuffer(val) {
|
||||
* @returns {boolean} True if value is an FormData, otherwise false
|
||||
*/
|
||||
function isFormData(val) {
|
||||
return toString.call(val) === '[object FormData]';
|
||||
return (typeof FormData !== 'undefined') && (val instanceof FormData);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user