diff --git a/chrome/content/zotero/xpcom/http.js b/chrome/content/zotero/xpcom/http.js index 64e8ae766..026ef44ff 100644 --- a/chrome/content/zotero/xpcom/http.js +++ b/chrome/content/zotero/xpcom/http.js @@ -158,6 +158,9 @@ Zotero.HTTP = new function() { if (options && options.body && !headers["Content-Type"]) { headers["Content-Type"] = "application/x-www-form-urlencoded"; } + if (options.debug) { + Zotero.debug(headers); + } for (var header in headers) { xmlhttp.setRequestHeader(header, headers[header]); }