diff --git a/lib/adapters/xhr.js b/lib/adapters/xhr.js index 2cfc31a..0f19802 100644 --- a/lib/adapters/xhr.js +++ b/lib/adapters/xhr.js @@ -143,7 +143,7 @@ module.exports = function xhrAdapter(resolve, reject, config) { } // Handle progress if needed - if (config.progress) { + if (typeof config.progress === 'function') { if (config.method === 'post' || config.method === 'put') { request.upload.addEventListener('progress', config.progress); } else if (config.method === 'get') {