From cb11e5a3e0708703e4ef70c8d2dc4d5c626cbfa6 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Thu, 25 Apr 2019 03:44:17 -0400 Subject: [PATCH] Fix HTTP.request() status of 0 on connection interruption `status` was being set to undefined instead of 0, likely in a regression from b78212084. --- chrome/content/zotero/xpcom/http.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/http.js b/chrome/content/zotero/xpcom/http.js index 9b5c620692..18be915d46 100644 --- a/chrome/content/zotero/xpcom/http.js +++ b/chrome/content/zotero/xpcom/http.js @@ -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) {