From 0df967418b6f4df6e6224d335dc6e1cea12017da Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Fri, 11 Aug 2017 18:24:03 +0200 Subject: [PATCH] Fix error handling for HTTP.request() with responseType: 'document' --- 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 71f41814e..0218c3953 100644 --- a/chrome/content/zotero/xpcom/http.js +++ b/chrome/content/zotero/xpcom/http.js @@ -253,7 +253,7 @@ Zotero.HTTP = new function() { deferred.resolve(xmlhttp); } else { let msg = "HTTP " + method + " " + dispURL + " failed with status code " + xmlhttp.status; - if (xmlhttp.responseText) { + if (!xmlhttp.responseType && xmlhttp.responseText) { msg += ":\n\n" + xmlhttp.responseText; } Zotero.debug(msg, 1);