diff --git a/chrome/content/zotero/xpcom/http.js b/chrome/content/zotero/xpcom/http.js index 7ecc773b9c..64e8ae7667 100644 --- a/chrome/content/zotero/xpcom/http.js +++ b/chrome/content/zotero/xpcom/http.js @@ -46,9 +46,14 @@ Zotero.HTTP = new function() { return this.message; }; + this.promise = function () { + Zotero.debug("Zotero.HTTP.promise() is deprecated -- use Zotero.HTTP.request()", 2); + return this.request.apply(this, arguments); + } + /** * Get a promise for a HTTP request - * + * * @param {String} method The method of the request ("GET", "POST", "HEAD", or "OPTIONS") * @param {nsIURI|String} url URL to request * @param {Object} [options] Options for HTTP request: