mirror of
https://github.com/tenrok/axios.git
synced 2026-05-21 13:24:11 +03:00
Fixed axios promise rejection for cors api calls in IE9
This commit is contained in:
+1
-1
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user