From 63e169c139b1627da09b73b4d24e8a7716fdc15c Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Wed, 24 Feb 2016 21:50:06 -0500 Subject: [PATCH] Only show empty-response-from-server error for 0 or 200 status codes --- chrome/content/zotero/xpcom/sync/syncAPIClient.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/sync/syncAPIClient.js b/chrome/content/zotero/xpcom/sync/syncAPIClient.js index b56439e38..d252f960b 100644 --- a/chrome/content/zotero/xpcom/sync/syncAPIClient.js +++ b/chrome/content/zotero/xpcom/sync/syncAPIClient.js @@ -626,7 +626,7 @@ Zotero.Sync.APIClient.prototype = { _checkConnection: function (xmlhttp, channel) { const Ci = Components.interfaces; - if (!xmlhttp.responseText) { + if (!xmlhttp.responseText && (xmlhttp.status == 0 || xmlhttp.status == 200)) { let msg = null; let dialogButtonText = null; let dialogButtonCallback = null;