From 4ef8d9e226f343323ea22c4aa32091f6f71f5bc4 Mon Sep 17 00:00:00 2001 From: John Christopher Anderson Date: Thu, 8 Jul 2010 18:10:56 +0000 Subject: 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 --- share/www/script/jquery.couch.js | 1 + 1 file changed, 1 insertion(+) (limited to 'share/www') 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, -- cgit v1.2.3