From 51365924a336e7ecc266a09ec730628991b8a234 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sat, 16 Feb 2013 22:44:07 -0500 Subject: [PATCH] Accept HTTP headers in Zotero.HTTP.promise() 'options' object --- chrome/content/zotero/xpcom/http.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/http.js b/chrome/content/zotero/xpcom/http.js index 2368414154..fa948cf93f 100644 --- a/chrome/content/zotero/xpcom/http.js +++ b/chrome/content/zotero/xpcom/http.js @@ -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"; }