diff options
author | John Christopher Anderson <jchris@apache.org> | 2008-10-31 21:21:05 +0000 |
---|---|---|
committer | John Christopher Anderson <jchris@apache.org> | 2008-10-31 21:21:05 +0000 |
commit | 5ec6ff7fc12b8092e42829d790a20a90b3ab225d (patch) | |
tree | 32f3947551c1e905c7a0d11cd2a0dd08482b738c /src | |
parent | 2edc6bf3ca2d6cf4a1f06ea4c546d2d1fab24c3d (diff) |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/couchdb/couch_doc.erl | 2 |
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}) -> |