HTTP.request(): Don't try to output responseText if not text response

This commit is contained in:
Dan Stillman 2026-02-12 13:43:39 -05:00
parent c9ab1ec62c
commit 7fe4e50c4c

View file

@ -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);
}