diff options
author | Noah Slater <nslater@apache.org> | 2009-02-24 18:10:19 +0000 |
---|---|---|
committer | Noah Slater <nslater@apache.org> | 2009-02-24 18:10:19 +0000 |
commit | 47895d920228edfb195e62ff04d5aa8ef667ed5b (patch) | |
tree | 062357f58cc657a7136d5af08940b2bcc1aab2ab /share/www/script/test/content_negotiation.js | |
parent | cb03fe83412bd514bdbfad0e7ac0da76be3bf372 (diff) |
added newline to JSON responses, closes COUCHDB-107
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@747465 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/www/script/test/content_negotiation.js')
-rw-r--r-- | share/www/script/test/content_negotiation.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/share/www/script/test/content_negotiation.js b/share/www/script/test/content_negotiation.js index 757105ff..9df79bcd 100644 --- a/share/www/script/test/content_negotiation.js +++ b/share/www/script/test/content_negotiation.js @@ -20,6 +20,10 @@ couchTests.content_negotiation = function(debug) { xhr = CouchDB.request("GET", "/test_suite_db/"); T(xhr.getResponseHeader("Content-Type") == "text/plain;charset=utf-8"); + // make sure JSON responses end in a newline + var text = xhr.responseText; + T(text[text.length-1] == "\n"); + xhr = CouchDB.request("GET", "/test_suite_db/", { headers: {"Accept": "text/html;text/plain;*/*"} }); |