소스 검색

[Fix] Libucl: Fix messagepack autodetection

pull/4867/head
Vsevolod Stakhov 2 달 전
부모
커밋
b368f28b84
No account linked to committer's email address
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      contrib/libucl/ucl_parser.c

+ 1
- 1
contrib/libucl/ucl_parser.c 파일 보기

@@ -2984,7 +2984,7 @@ ucl_parser_add_chunk_full (struct ucl_parser *parser, const unsigned char *data,

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

Loading…
취소
저장