commit fe83d4db72d6237cfa99c484bfb1c052f50b107f
parent 16e4aa05169c2744614c4ec55e535bd121199046
Author: Dan Stillman <dstillman@zotero.org>
Date: Mon, 16 Sep 2013 02:28:11 -0400
Document options.headers property for Zotero.HTTP.promise()
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/chrome/content/zotero/xpcom/http.js b/chrome/content/zotero/xpcom/http.js
@@ -50,6 +50,7 @@ Zotero.HTTP = new function() {
* @param {nsIURI|String} url URL to request
* @param {Object} [options] Options for HTTP request:<ul>
* <li>body - The body of a POST request</li>
+ * <li>headers - Object of HTTP headers to send with the request</li>
* <li>cookieSandbox - The sandbox from which cookies should be taken</li>
* <li>debug - Log response text and status code</li>
* <li>dontCache - If set, specifies that the request should not be fulfilled from the cache</li>