Skip to content

Commit 10308d2

Browse files
committed
pack: Avoid to use hard-coded value for escaping strings
Signed-off-by: Hiroshi Hatake <[email protected]>
1 parent 8e59ec7 commit 10308d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/flb_pack.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1166,7 +1166,7 @@ flb_sds_t flb_pack_msgpack_to_json_format(const char *data, uint64_t bytes,
11661166
json_format == FLB_PACK_JSON_FORMAT_STREAM) {
11671167

11681168
/* Encode current record into JSON in a temporary variable */
1169-
out_js = flb_msgpack_raw_to_json_sds(tmp_sbuf.data, tmp_sbuf.size, FLB_TRUE);
1169+
out_js = flb_msgpack_raw_to_json_sds(tmp_sbuf.data, tmp_sbuf.size, escape_unicode);
11701170
if (!out_js) {
11711171
flb_sds_destroy(out_buf);
11721172
msgpack_sbuffer_destroy(&tmp_sbuf);

0 commit comments

Comments
 (0)