diff --git a/index.js b/index.js index 68f60eb..da1d9db 100644 --- a/index.js +++ b/index.js @@ -69,8 +69,7 @@ function _createXHR(options) { if (xhr.response) { body = xhr.response } else { - var xml = getXml(xhr) - body = xhr.responseText || xml + body = xhr.responseText || getXml(xhr) } if (isJson) {