Skip to content

Commit 6cd32a1

Browse files
committed
Backport msgpack detection fix from libucl
1 parent 6e10be9 commit 6cd32a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ucl_parser.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3009,7 +3009,7 @@ ucl_parser_add_chunk_full (struct ucl_parser *parser, const unsigned char *data,
30093009

30103010
if (parse_type == UCL_PARSE_AUTO && len > 0) {
30113011
/* We need to detect parse type by the first symbol */
3012-
if ((*data & 0x80) == 0x80 && (*data >= 0xdc && *data <= 0xdf)) {
3012+
if ((*data & 0x80) == 0x80) {
30133013
parse_type = UCL_PARSE_MSGPACK;
30143014
}
30153015
else if (*data == '(') {

0 commit comments

Comments
 (0)