mirror of
https://github.com/tenrok/axios.git
synced 2026-06-23 20:40:40 +03:00
Fixing issue with responseURL property
`responseURL` is not supported in IE
This commit is contained in:
+1
-1
@@ -57,7 +57,7 @@ module.exports = function xhrAdapter(config) {
|
|||||||
// handled by onerror instead
|
// handled by onerror instead
|
||||||
// With one exception: request that using file: protocol, most browsers
|
// With one exception: request that using file: protocol, most browsers
|
||||||
// will return status as 0 even though it's a successful request
|
// will return status as 0 even though it's a successful request
|
||||||
if (request.status === 0 && request.responseURL.indexOf('file:') !== 0) {
|
if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user