Skip to content

Commit be9e755

Browse files
committed
Set parser.data in BasicHttpHeaders::parse
1 parent ebc59fa commit be9e755

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sming/Components/Network/src/Network/Http/BasicHttpHeaders.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ HttpError BasicHttpHeaders::parse(char* data, size_t len, http_parser_type type)
4242
return HttpError(HTTP_PARSER_ERRNO(&parser));
4343
#else
4444
llhttp_init(&parser, type, &parserSettings);
45+
parser.data = this;
4546
return HttpError(llhttp_execute(&parser, data, len));
4647
#endif
4748
}

0 commit comments

Comments
 (0)