From 30ed55ac2dc3355c397a67e770382eb51d66a43e Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Wed, 4 Jun 2014 16:12:32 +0200 Subject: Base64-encode that empty string in extra_data. --- src/v1.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/v1.erl b/src/v1.erl index 206ca8a..6ab9e75 100644 --- a/src/v1.erl +++ b/src/v1.erl @@ -87,7 +87,7 @@ encode_entries(Entries) -> binary_to_list(jiffy:encode({[{entries, encode_entries2(Entries)}]})). encode_entries2([H|T]) -> LeafInput = base64:encode(plop:serialise(H)), - ExtraData = "", + ExtraData = base64:encode(""), [{[{leaf_input, LeafInput}, {extra_data, ExtraData}]} | encode_entries2(T)]; encode_entries2([]) -> []. -- cgit v1.1