Accept HTTP headers in Zotero.HTTP.promise() 'options' object
This commit is contained in:
parent
1575cfa84a
commit
51365924a3
1 changed files with 1 additions and 1 deletions
|
@ -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";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue