From b548ae61dd1d35c1d598a68607082db7e73d34a7 Mon Sep 17 00:00:00 2001 From: ms <98183742+dungeon-master-666@users.noreply.github.com> Date: Thu, 15 Dec 2022 08:04:34 +0100 Subject: [PATCH] Fix truncating JsonString (#552) --- tl/tl/tl_json.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tl/tl/tl_json.h b/tl/tl/tl_json.h index fbc7f2c5..66c639b5 100644 --- a/tl/tl/tl_json.h +++ b/tl/tl/tl_json.h @@ -53,7 +53,8 @@ struct JsonBytes { }; inline void to_json(JsonValueScope &jv, const JsonBytes json_bytes) { - jv << JsonString(PSLICE() << base64_encode(json_bytes.bytes)); + auto base64 = base64_encode(json_bytes.bytes); + jv << JsonString(base64); } template struct JsonVectorBytesImpl {