summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/couchdb/couch_doc.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/couchdb/couch_doc.erl b/src/couchdb/couch_doc.erl
index 12b48dc2..3efb8bd7 100644
--- a/src/couchdb/couch_doc.erl
+++ b/src/couchdb/couch_doc.erl
@@ -39,7 +39,7 @@ to_json_obj(#doc{id=Id,deleted=Del,body=Body,revs=Revs,meta=Meta}=Doc,Options)->
lists:map(
fun({revs_info, RevsInfo}) ->
JsonRevsInfo =
- [{[{rev, Rev}, {status, atom_to_list(Status)}]} ||
+ [{[{rev, Rev}, {status, list_to_binary(atom_to_list(Status))}]} ||
{Rev, Status} <- RevsInfo],
{<<"_revs_info">>, JsonRevsInfo};
({conflicts, Conflicts}) ->