couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kxe...@apache.org
Subject [27/50] jquery-couch commit: updated refs/heads/import-master to 66dbcbf
Date Tue, 01 Apr 2014 08:52:32 GMT
use json as the default content-type for requests from jquery.couch.js

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@961854 13f79535-47bb-0310-9956-ffa450edef68


Project: http://git-wip-us.apache.org/repos/asf/couchdb-jquery-couch/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-jquery-couch/commit/e5ca5fb4
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-jquery-couch/tree/e5ca5fb4
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-jquery-couch/diff/e5ca5fb4

Branch: refs/heads/import-master
Commit: e5ca5fb458b9198f08d07ff94f3562cc52315cf1
Parents: 43fe30e
Author: John Christopher Anderson <jchris@apache.org>
Authored: Thu Jul 8 18:09:20 2010 +0000
Committer: Alexander Shorin <kxepal@gmail.com>
Committed: Thu Jul 8 18:09:20 2010 +0000

----------------------------------------------------------------------
 jquery.couch.js | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-jquery-couch/blob/e5ca5fb4/jquery.couch.js
----------------------------------------------------------------------
diff --git a/jquery.couch.js b/jquery.couch.js
index ab8db00..b009af6 100644
--- a/jquery.couch.js
+++ b/jquery.couch.js
@@ -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,


Mime
View raw message