Fix HTTP.request() status of 0 on connection interruption
`status` was being set to undefined instead of 0, likely in a regression
from b78212084
.
This commit is contained in:
parent
50b65b3010
commit
cb11e5a3e0
1 changed files with 1 additions and 1 deletions
|
@ -403,7 +403,7 @@ Zotero.HTTP = new function() {
|
|||
}
|
||||
|
||||
xmlhttp.onloadend = async function() {
|
||||
var status = xmlhttp.status || redirectStatus;
|
||||
var status = redirectStatus || xmlhttp.status;
|
||||
|
||||
try {
|
||||
if (!status) {
|
||||
|
|
Loading…
Reference in a new issue