summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordberg.se>2014-06-04 16:12:32 +0200
committerLinus Nordberg <linus@nordberg.se>2014-06-04 16:12:32 +0200
commit30ed55ac2dc3355c397a67e770382eb51d66a43e (patch)
tree0fd45663a06fe086c7bd70d6feee6b6eb50af4b4 /src
parent5988fa1496974f13794edb5ef234b203d12e7802 (diff)
Base64-encode that empty string in extra_data.
Diffstat (limited to 'src')
-rw-r--r--src/v1.erl2
1 files changed, 1 insertions, 1 deletions
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([]) ->
[].