www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 51365924a336e7ecc266a09ec730628991b8a234
parent 1575cfa84ac693002454afe960b66ee43214f096
Author: Dan Stillman <dstillman@zotero.org>
Date:   Sat, 16 Feb 2013 22:44:07 -0500

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

Diffstat:
Mchrome/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 @@ -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"; }