summaryrefslogtreecommitdiff
path: root/share/www
diff options
context:
space:
mode:
authorJohn Christopher Anderson <jchris@apache.org>2009-02-13 18:33:16 +0000
committerJohn Christopher Anderson <jchris@apache.org>2009-02-13 18:33:16 +0000
commiteb81ff32d07cb8cbe1a13a495a2aabd968313821 (patch)
tree191539e4bc0bc62e6221b6c11a6368a8309f9a4b /share/www
parent9b2e6ed37184709e70def81d53246a9fe58f18ba (diff)
Apply COUCHDB-251.
Allow _list functions to accept arbitrary GET parameters. Thanks Paul Davis. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@744210 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/www')
-rw-r--r--share/www/script/couch_tests.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/share/www/script/couch_tests.js b/share/www/script/couch_tests.js
index e9594918..bc4e067a 100644
--- a/share/www/script/couch_tests.js
+++ b/share/www/script/couch_tests.js
@@ -2795,6 +2795,10 @@ db.createDb();
}
}
})
+ }),
+ qsParams: stringFun(function(head, row, req, row_number) {
+ if(head) return {body: req.query.foo};
+ else return {body: "\n"};
})
}
};
@@ -2862,6 +2866,10 @@ db.createDb();
T(xhr.getResponseHeader("Content-Type") == "application/xml");
T(xhr.responseText.match(/XML/));
T(xhr.responseText.match(/entry/));
+
+ // now with extra qs params
+ xhr = CouchDB.request("GET", "/test_suite_db/_list/lists/qsParams/basicView?foo=blam");
+ T(xhr.responseText.match(/blam/));
},
compact: function(debug) {