Return-Path: Delivered-To: apmail-couchdb-commits-archive@www.apache.org Received: (qmail 7349 invoked from network); 8 Jul 2010 18:10:46 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 8 Jul 2010 18:10:46 -0000 Received: (qmail 16040 invoked by uid 500); 8 Jul 2010 18:10:46 -0000 Delivered-To: apmail-couchdb-commits-archive@couchdb.apache.org Received: (qmail 15985 invoked by uid 500); 8 Jul 2010 18:10:46 -0000 Mailing-List: contact commits-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list commits@couchdb.apache.org Received: (qmail 15978 invoked by uid 99); 8 Jul 2010 18:10:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Jul 2010 18:10:46 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Jul 2010 18:10:43 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 99884238899C; Thu, 8 Jul 2010 18:09:20 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r961854 - /couchdb/trunk/share/www/script/jquery.couch.js Date: Thu, 08 Jul 2010 18:09:20 -0000 To: commits@couchdb.apache.org From: jchris@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20100708180920.99884238899C@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: jchris Date: Thu Jul 8 18:09:20 2010 New Revision: 961854 URL: http://svn.apache.org/viewvc?rev=961854&view=rev Log: use json as the default content-type for requests from jquery.couch.js Modified: couchdb/trunk/share/www/script/jquery.couch.js Modified: couchdb/trunk/share/www/script/jquery.couch.js URL: http://svn.apache.org/viewvc/couchdb/trunk/share/www/script/jquery.couch.js?rev=961854&r1=961853&r2=961854&view=diff ============================================================================== --- couchdb/trunk/share/www/script/jquery.couch.js [utf-8] (original) +++ couchdb/trunk/share/www/script/jquery.couch.js [utf-8] Thu Jul 8 18:09:20 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,