diff options
Diffstat (limited to 'src/couchdb/couch_util.erl')
-rw-r--r-- | src/couchdb/couch_util.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/couchdb/couch_util.erl b/src/couchdb/couch_util.erl index 436dee38..817572bb 100644 --- a/src/couchdb/couch_util.erl +++ b/src/couchdb/couch_util.erl @@ -226,8 +226,8 @@ should_flush(MemThreshHold) -> %% Take 3 bytes a time (3 x 8 = 24 bits), and make 4 characters out of %% them (4 x 6 = 24 bits). %% -encodeBase64(Bs) when list(Bs) -> - encodeBase64(list_to_binary(Bs), <<>>); +encodeBase64(Bs) when is_list(Bs) -> + encodeBase64(iolist_to_binary(Bs), <<>>); encodeBase64(Bs) -> encodeBase64(Bs, <<>>). |