1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

Fix #1508, http-client support read chunked response. 3.0.76

This commit is contained in:
winlin 2019-12-20 16:09:37 +08:00
parent 788b200e90
commit cab15c348c
4 changed files with 43 additions and 13 deletions

View file

@ -55,7 +55,11 @@ private:
http_parser hp_header;
std::string url;
SrsHttpHeader* header;
const char* pbody;
private:
// Point to the start of body.
const char* p_body_start;
// To discover the length of header, point to the last few bytes in header.
const char* p_header_tail;
public:
SrsHttpParser();
virtual ~SrsHttpParser();