mirror of
https://github.com/zotero/zotero.git
synced 2026-10-06 02:50:03 +00:00
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…
Add table
Reference in a new issue