summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Christopher Anderson <jchris@apache.org>2010-07-08 18:09:20 +0000
committerJohn Christopher Anderson <jchris@apache.org>2010-07-08 18:09:20 +0000
commit5c55239750edc5540825ef0bbf83fccb1bed459f (patch)
tree47bfb6cf7edf2810430cfa1b6a3a5d8596610d43
parentddd9811edb767d6ca9ba77ce6ae1eedffac6a8ca (diff)
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
-rw-r--r--share/www/script/jquery.couch.js1
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,