summaryrefslogtreecommitdiff
path: root/src/couchdb
diff options
context:
space:
mode:
authorJohn Christopher Anderson <jchris@apache.org>2010-07-13 14:30:42 +0000
committerJohn Christopher Anderson <jchris@apache.org>2010-07-13 14:30:42 +0000
commit2bf9181a0bc5c6ba53347dc20d465937916e90ad (patch)
treec7d12aad1105d676d5bc8c938bfd66ffe1286705 /src/couchdb
parent00cf3df200a49b9d00abf914b5691de1cc10ba6a (diff)
show the complete document body even when the document is deleted (Couch lets you store data with a delete but did not render it to JSON)
git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.0.x@963732 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/couchdb')
-rw-r--r--src/couchdb/couch_doc.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/couchdb/couch_doc.erl b/src/couchdb/couch_doc.erl
index 50dbd9d0..acae0c55 100644
--- a/src/couchdb/couch_doc.erl
+++ b/src/couchdb/couch_doc.erl
@@ -27,8 +27,8 @@ to_json_rev(0, []) ->
to_json_rev(Start, [FirstRevId|_]) ->
[{<<"_rev">>, ?l2b([integer_to_list(Start),"-",revid_to_str(FirstRevId)])}].
-to_json_body(true, _Body) ->
- [{<<"_deleted">>, true}];
+to_json_body(true, {Body}) ->
+ Body ++ [{<<"_deleted">>, true}];
to_json_body(false, {Body}) ->
Body.