commit 63e169c139b1627da09b73b4d24e8a7716fdc15c
parent af8865f3f38cc19f6112ac0ed1c94f2e1299598f
Author: Dan Stillman <dstillman@zotero.org>
Date: Wed, 24 Feb 2016 21:50:06 -0500
Only show empty-response-from-server error for 0 or 200 status codes
Diffstat:
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
@@ -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;