You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by jc...@apache.org on 2010/07/08 20:10:57 UTC
svn commit: r961856 -
/couchdb/branches/1.0.x/share/www/script/jquery.couch.js
Author: jchris
Date: Thu Jul 8 18:10:56 2010
New Revision: 961856
URL: http://svn.apache.org/viewvc?rev=961856&view=rev
Log:
use json as the default content-type for requests from jquery.couch.js
Modified:
couchdb/branches/1.0.x/share/www/script/jquery.couch.js
Modified: couchdb/branches/1.0.x/share/www/script/jquery.couch.js
URL: http://svn.apache.org/viewvc/couchdb/branches/1.0.x/share/www/script/jquery.couch.js?rev=961856&r1=961855&r2=961856&view=diff
==============================================================================
--- couchdb/branches/1.0.x/share/www/script/jquery.couch.js [utf-8] (original)
+++ couchdb/branches/1.0.x/share/www/script/jquery.couch.js [utf-8] Thu Jul 8 18:10:56 2010
@@ -595,6 +595,7 @@
function ajax(obj, options, errorMessage, ajaxOptions) {
options = $.extend({successStatus: 200}, options);
+ ajaxOptions = $.extend({contentType: "application/json"}, ajaxOptions);
errorMessage = errorMessage || "Unknown error";
$.ajax($.extend($.extend({
type: "GET", dataType: "json", cache : !$.browser.msie,