mirror of
https://github.com/tenrok/axios.git
synced 2026-06-02 16:04:10 +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
|
||||
*/
|
||||
function isFormData(val) {
|
||||
return toString.call(val) === '[object FormData]';
|
||||
return (typeof FormData !== 'undefined') && (val instanceof FormData);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user