summaryrefslogtreecommitdiff
path: root/share/www
diff options
context:
space:
mode:
authorRobert Newson <rnewson@apache.org>2010-09-30 13:00:48 +0000
committerRobert Newson <rnewson@apache.org>2010-09-30 13:00:48 +0000
commitced8d0138b1946568536a73edd9d92312e300003 (patch)
tree15c2f9fced218c64f58d64805d7a83d0bd2e0a56 /share/www
parentf64b4a4bd7ac4c833271591f62010288270bfb93 (diff)
fix badmatch for COPY call with missing Destination header.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1003050 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/www')
-rw-r--r--share/www/script/test/copy_doc.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/share/www/script/test/copy_doc.js b/share/www/script/test/copy_doc.js
index a6de1892..99e3c7fe 100644
--- a/share/www/script/test/copy_doc.js
+++ b/share/www/script/test/copy_doc.js
@@ -36,6 +36,9 @@ couchTests.copy_doc = function(debug) {
});
T(xhr.status == 409); // conflict
+ var xhr = CouchDB.request("COPY", "/test_suite_db/doc_to_be_copied2");
+ T(xhr.status == 400); // bad request (no Destination header)
+
var rev = db.open("doc_to_be_overwritten")._rev;
var xhr = CouchDB.request("COPY", "/test_suite_db/doc_to_be_copied2", {
headers: {"Destination":"doc_to_be_overwritten?rev=" + rev}