From 33b7dfe1eb1914aa1f192e05b44892c6e9ffc537 Mon Sep 17 00:00:00 2001 From: Jan Lehnardt Date: Mon, 15 Jun 2009 09:49:46 +0000 Subject: 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 --- share/www/script/test/show_documents.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'share/www/script/test') 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"); -- cgit v1.2.3