commit 4616a51874c8342765ef98bf3eee8af1cbca4a7a
parent 2a33ede284053411145d825411daf453648f8958
Author: Simon Kornblith <simon@simonster.com>
Date: Wed, 8 May 2013 13:22:56 -0400
Fix #318, x-www-form-urlencoded, not x-www-urlencoded
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/chrome/content/zotero/xpcom/server.js b/chrome/content/zotero/xpcom/server.js
@@ -369,7 +369,7 @@ Zotero.Server.DataListener.prototype._processEndpoint = function(method, postDat
this._requestFinished(this._generateResponse(400, "text/plain", "Invalid JSON provided\n"));
return;
}
- } else if(supportedDataTypes && this.contentType === "application/x-www-urlencoded") {
+ } else if(supportedDataTypes && this.contentType === "application/x-www-form-urlencoded") {
decodedData = Zotero.Server.decodeQueryString(postData);
} else {
decodedData = postData;