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

This commit is contained in:
Dan Stillman 2017-08-11 18:24:03 +02:00
parent 9202ab8b3c
commit 0df967418b

View file

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