summaryrefslogtreecommitdiff
path: root/share/www/script
diff options
context:
space:
mode:
authorJan Lehnardt <jan@apache.org>2009-06-15 09:49:46 +0000
committerJan Lehnardt <jan@apache.org>2009-06-15 09:49:46 +0000
commit33b7dfe1eb1914aa1f192e05b44892c6e9ffc537 (patch)
treef94cd94fe41417e6b720f3061bc4a984cad8cebd /share/www/script
parentcd39ebe7d12d999324ff2cc9842567b34dc4d4c7 (diff)
Send CouchDB Server: header for all external queries. Fixes COUCHDB-379.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@784706 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/www/script')
-rw-r--r--share/www/script/test/show_documents.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/share/www/script/test/show_documents.js b/share/www/script/test/show_documents.js
index 945bd1da..18dcc0b3 100644
--- a/share/www/script/test/show_documents.js
+++ b/share/www/script/test/show_documents.js
@@ -148,6 +148,9 @@ couchTests.show_documents = function(debug) {
//
// function foo() {
+ // Fix for COUCHDB-379
+ T(equals(xhr.getResponseHeader("Server").substr(0,7), "CouchDB"));
+
// // error stacktraces
// xhr = CouchDB.request("GET", "/test_suite_db/_design/template/_show/render-error/"+docid);
// T(JSON.parse(xhr.responseText).error == "render_error");