mirror of
https://github.com/tenrok/axios.git
synced 2026-06-20 20:00:40 +03:00
Merge pull request #325 from kimrgrey/issue#323
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
|
* @returns {boolean} True if value is an FormData, otherwise false
|
||||||
*/
|
*/
|
||||||
function isFormData(val) {
|
function isFormData(val) {
|
||||||
return toString.call(val) === '[object FormData]';
|
return (typeof FormData !== 'undefined') && (val instanceof FormData);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user