diff options
Diffstat (limited to 'share/www/script/test/stats.js')
-rw-r--r-- | share/www/script/test/stats.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/share/www/script/test/stats.js b/share/www/script/test/stats.js index 23468a37..d2fd6eac 100644 --- a/share/www/script/test/stats.js +++ b/share/www/script/test/stats.js @@ -160,7 +160,10 @@ couchTests.stats = function(debug) { runTest("couchdb", "database_writes", { run: function(db) { - CouchDB.request("POST", "/test_suite_db", {body: '{"a": "1"}'}) + CouchDB.request("POST", "/test_suite_db", { + headers: {"Content-Type": "application/json"}, + body: '{"a": "1"}' + }) }, test: function(before, after) { TEquals(before+1, after, "POST'ing new docs increments doc writes."); |