summaryrefslogtreecommitdiff
path: root/share/www/script/couch.js
diff options
context:
space:
mode:
authorJohn Christopher Anderson <jchris@apache.org>2010-06-25 05:17:30 +0000
committerJohn Christopher Anderson <jchris@apache.org>2010-06-25 05:17:30 +0000
commitea1ffd94840e79bac252893741e43412aaca96e6 (patch)
tree770cff04a02c61122118e3da5565c116045b7f3b /share/www/script/couch.js
parentceada3e64c95307f863a4010a23e2cf8f6f56460 (diff)
use proper Accept headers in the test suite
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@957799 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/www/script/couch.js')
-rw-r--r--share/www/script/couch.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/share/www/script/couch.js b/share/www/script/couch.js
index d745b06e..33fd82ba 100644
--- a/share/www/script/couch.js
+++ b/share/www/script/couch.js
@@ -399,7 +399,8 @@ CouchDB.newXhr = function() {
CouchDB.request = function(method, uri, options) {
options = options || {};
options.headers = options.headers || {};
- options.headers["Content-Type"] = options.headers["Content-Type"] || "application/json";
+ options.headers["Content-Type"] = options.headers["Content-Type"] || options.headers["content-type"] || "application/json";
+ options.headers["Accept"] = options.headers["Accept"] || options.headers["accept"] || "application/json";
var req = CouchDB.newXhr();
if(uri.substr(0, "http://".length) != "http://") {
uri = CouchDB.urlPrefix + uri