2
0
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:
Sergey Tsvetkov
2016-05-17 15:52:15 +03:00
parent 580ef523d5
commit b1e6e753ff
+1 -1
View File
@@ -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);
}
/**