From 5ec6ff7fc12b8092e42829d790a20a90b3ab225d Mon Sep 17 00:00:00 2001 From: John Christopher Anderson Date: Fri, 31 Oct 2008 21:21:05 +0000 Subject: fixed JSON regression about revs_info status git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@709572 13f79535-47bb-0310-9956-ffa450edef68 --- src/couchdb/couch_doc.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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}) -> -- cgit v1.2.3