diff options
Diffstat (limited to 'share/www/script/couch.js')
-rw-r--r-- | share/www/script/couch.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/share/www/script/couch.js b/share/www/script/couch.js index dbffa7ce..d745b06e 100644 --- a/share/www/script/couch.js +++ b/share/www/script/couch.js @@ -398,6 +398,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"; var req = CouchDB.newXhr(); if(uri.substr(0, "http://".length) != "http://") { uri = CouchDB.urlPrefix + uri |