diff options
author | Linus Nordberg <linus@nordberg.se> | 2014-06-04 16:12:32 +0200 |
---|---|---|
committer | Linus Nordberg <linus@nordberg.se> | 2014-06-04 16:12:32 +0200 |
commit | 30ed55ac2dc3355c397a67e770382eb51d66a43e (patch) | |
tree | 0fd45663a06fe086c7bd70d6feee6b6eb50af4b4 | |
parent | 5988fa1496974f13794edb5ef234b203d12e7802 (diff) |
Base64-encode that empty string in extra_data.
-rw-r--r-- | src/v1.erl | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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([]) -> []. |