Fix #318, x-www-form-urlencoded, not x-www-urlencoded

This commit is contained in:
Simon Kornblith 2013-05-08 13:22:56 -04:00
parent 2a33ede284
commit 4616a51874

View file

@ -369,7 +369,7 @@ Zotero.Server.DataListener.prototype._processEndpoint = function(method, postDat
this._requestFinished(this._generateResponse(400, "text/plain", "Invalid JSON provided\n")); this._requestFinished(this._generateResponse(400, "text/plain", "Invalid JSON provided\n"));
return; 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); decodedData = Zotero.Server.decodeQueryString(postData);
} else { } else {
decodedData = postData; decodedData = postData;