summaryrefslogtreecommitdiff
path: root/share/www/script/couch_tests.js
diff options
context:
space:
mode:
authorChristopher Lenz <cmlenz@apache.org>2008-05-26 12:47:00 +0000
committerChristopher Lenz <cmlenz@apache.org>2008-05-26 12:47:00 +0000
commit3bbbbf14522cbd95f2a0f6610b8b6af5ebb6c778 (patch)
tree17bba3d6804a5421cd19a5db0f62076feeedd087 /share/www/script/couch_tests.js
parent7409e56fc2cc3c8927153c63959a23d867466967 (diff)
* Respond to DELETE requests with a "200 OK" status code instead of "202 Accepted", as the deletion is performed immediately.
* The "content-type" member in attachment structures is now named "content_type" (underscore) for consistency and to be more accessible from Javascript (and presumably other languages, too) git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@660176 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/www/script/couch_tests.js')
-rw-r--r--share/www/script/couch_tests.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/share/www/script/couch_tests.js b/share/www/script/couch_tests.js
index ea31e140..8693d38c 100644
--- a/share/www/script/couch_tests.js
+++ b/share/www/script/couch_tests.js
@@ -388,11 +388,11 @@ var tests = {
if (debug) debugger;
var binAttDoc = {
- _id:"bin_doc",
+ _id: "bin_doc",
_attachments:{
"foo.txt": {
- "content-type":"text/plain",
- "data": "VGhpcyBpcyBhIGJhc2U2NCBlbmNvZGVkIHRleHQ="
+ content_type:"text/plain",
+ data: "VGhpcyBpcyBhIGJhc2U2NCBlbmNvZGVkIHRleHQ="
}
}
}
@@ -401,7 +401,7 @@ var tests = {
var xhr = CouchDB.request("GET", "/test_suite_db/bin_doc/foo.txt");
T(xhr.responseText == "This is a base64 encoded text")
- T(xhr.getResponseHeader("content-type") == "text/plain")
+ T(xhr.getResponseHeader("Content-Type") == "text/plain")
},
content_negotiation: function(debug) {
@@ -954,11 +954,11 @@ var tests = {
var binAttDoc = {
- _id:"bin_doc",
+ _id: "bin_doc",
_attachments:{
"foo.txt": {
- "content-type":"text/plain",
- "data": "VGhpcyBpcyBhIGJhc2U2NCBlbmNvZGVkIHRleHQ="
+ content_type:"text/plain",
+ data: "VGhpcyBpcyBhIGJhc2U2NCBlbmNvZGVkIHRleHQ="
}
}
}
@@ -982,7 +982,7 @@ var tests = {
var xhr = CouchDB.request("GET", "/test_suite_db/bin_doc/foo.txt");
T(xhr.responseText == "This is a base64 encoded text")
- T(xhr.getResponseHeader("content-type") == "text/plain")
+ T(xhr.getResponseHeader("Content-Type") == "text/plain")
var compactedsize = db.info().disk_size;