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:
Dan Stillman 2019-04-25 03:44:17 -04:00
parent 50b65b3010
commit cb11e5a3e0

View file

@ -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) {