From 29f5b9b66d2bd7fefa05b4b3dc035bae1e2b5b0d Mon Sep 17 00:00:00 2001 From: goyalr Date: Fri, 26 Feb 2016 13:03:59 -0500 Subject: [PATCH] Fixed axios promise rejection for cors api calls in IE9 --- lib/adapters/xhr.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/adapters/xhr.js b/lib/adapters/xhr.js index c930f2e..04a660c 100644 --- a/lib/adapters/xhr.js +++ b/lib/adapters/xhr.js @@ -58,7 +58,7 @@ module.exports = function xhrAdapter(resolve, reject, config) { // Resolve or reject the Promise based on the status ((response.status >= 200 && response.status < 300) || - (!('status' in request) && response.responseText) ? + (!('status' in request) && request.responseText) ? resolve : reject)(response);