From 7fe4e50c4ce57d2c143efe3f02ca2f75ec6a40e1 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Thu, 12 Feb 2026 13:43:39 -0500 Subject: [PATCH] HTTP.request(): Don't try to output responseText if not text response --- 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 65bf6dd32a..c73b7d4777 100644 --- a/chrome/content/zotero/xpcom/http.js +++ b/chrome/content/zotero/xpcom/http.js @@ -532,7 +532,7 @@ Zotero.HTTP = new function () { if(success) { Zotero.debug("HTTP " + method + " " + dispURL + " succeeded with " + status); - if (options.debug) { + if (options.debug && (xmlhttp.responseType == '' || xmlhttp.responseType == 'text')) { Zotero.debug(xmlhttp.responseText); }