Skip to content

Commit

Permalink
Tolerate JSON_ENCODE returning an iolist
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Newson authored and davisp committed Mar 20, 2013
1 parent 815ac0a commit a2d0c42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/couch_replicator_api_wrap.erl
Expand Up @@ -466,7 +466,7 @@ options_to_query_args([revs | Rest], Acc) ->
options_to_query_args([{open_revs, all} | Rest], Acc) ->
options_to_query_args(Rest, [{"open_revs", "all"} | Acc]);
options_to_query_args([{open_revs, Revs} | Rest], Acc) ->
JsonRevs = ?b2l(?JSON_ENCODE(couch_doc:revs_to_strs(Revs))),
JsonRevs = ?b2l(iolist_to_binary(?JSON_ENCODE(couch_doc:revs_to_strs(Revs)))),
options_to_query_args(Rest, [{"open_revs", JsonRevs} | Acc]).


Expand Down

0 comments on commit a2d0c42

Please sign in to comment.