Accept HTTP headers in Zotero.HTTP.promise() 'options' object

This commit is contained in:
Dan Stillman 2013-02-16 22:44:07 -05:00
parent 1575cfa84a
commit 51365924a3

View file

@ -119,7 +119,7 @@ Zotero.HTTP = new function() {
}
// Send headers
var headers = {};
var headers = (options && options.headers) || {};
if (options && options.body && !headers["Content-Type"]) {
headers["Content-Type"] = "application/x-www-form-urlencoded";
}