diff options
author | Adam Kocoloski <kocolosk@apache.org> | 2009-04-29 14:07:09 +0000 |
---|---|---|
committer | Adam Kocoloski <kocolosk@apache.org> | 2009-04-29 14:07:09 +0000 |
commit | eff7e5f18f78a52afd9107c15252876e0291b783 (patch) | |
tree | f3358b7a160b59caad0be2de22c674fff7955037 /share/www | |
parent | ea8e714c55695d605a23a75f2679b5bd34cd0f0c (diff) |
Closes COUCHDB-320 (ignore Content-Type in _temp_view). Thanks B. Candler
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@769792 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/www')
-rw-r--r-- | share/www/script/test/view_errors.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/share/www/script/test/view_errors.js b/share/www/script/test/view_errors.js index b9a6aa63..12225e67 100644 --- a/share/www/script/test/view_errors.js +++ b/share/www/script/test/view_errors.js @@ -50,6 +50,15 @@ couchTests.view_errors = function(debug) { }); T(JSON.parse(xhr.responseText).error == "invalid_json"); + // views should ignore Content-Type, like the rest of CouchDB + var xhr = CouchDB.request("POST", "/test_suite_db/_temp_view", { + headers: {"Content-Type": "application/x-www-form-urlencoded"}, + body: JSON.stringify({language: "javascript", + map : "function(doc){}" + }) + }); + T(xhr.status == 200); + var map = function (doc) {emit(doc.integer, doc.integer);}; try { |