www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 0df967418b6f4df6e6224d335dc6e1cea12017da
parent 9202ab8b3c08228cadadb492de5bfe1a1f0dc94c
Author: Dan Stillman <dstillman@zotero.org>
Date:   Fri, 11 Aug 2017 18:24:03 +0200

Fix error handling for HTTP.request() with responseType: 'document'

Diffstat:
Mchrome/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 @@ -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);