2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-08 17:22:34 +03:00

Fixing issue with responseURL property

`responseURL` is not supported in IE
This commit is contained in:
Nick Uraltsev
2016-09-12 11:38:28 -07:00
committed by GitHub
parent 4c4e648f40
commit 436d14b976
+1 -1
View File
@@ -57,7 +57,7 @@ module.exports = function xhrAdapter(config) {
// handled by onerror instead
// With one exception: request that using file: protocol, most browsers
// 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;
}