diff options
author | John Christopher Anderson <jchris@apache.org> | 2010-07-08 18:10:56 +0000 |
---|---|---|
committer | John Christopher Anderson <jchris@apache.org> | 2010-07-08 18:10:56 +0000 |
commit | 4ef8d9e226f343323ea22c4aa32091f6f71f5bc4 (patch) | |
tree | 400faa533ef4603719acb0305841d429088407de /share | |
parent | 40ed41cf8c7d47367a66bab42b2efef8689a1506 (diff) |
use json as the default content-type for requests from jquery.couch.js
git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.0.x@961856 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share')
-rw-r--r-- | share/www/script/jquery.couch.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/share/www/script/jquery.couch.js b/share/www/script/jquery.couch.js index f9647ecd..879c2444 100644 --- a/share/www/script/jquery.couch.js +++ b/share/www/script/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, |