mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Fix bug
This commit is contained in:
parent
7dcfd6b029
commit
a2d9f0a9ad
9 changed files with 13 additions and 6 deletions
|
@ -139,7 +139,7 @@ srs_error_t SrsHttpParser::parse_message_imp(ISrsReader* reader)
|
|||
enum http_errno code;
|
||||
if ((code = HTTP_PARSER_ERRNO(&parser)) != HPE_OK) {
|
||||
return srs_error_new(ERROR_HTTP_PARSE_HEADER, "parse %dB, nparsed=%d, err=%d/%s %s",
|
||||
buffer->size(), consumed, code, http_errno_name(code), http_errno_description(code));
|
||||
buffer->size(), (int)consumed, code, http_errno_name(code), http_errno_description(code));
|
||||
}
|
||||
|
||||
// When buffer consumed these bytes, it's dropped so the new ptr is actually the HTTP body. But http-parser
|
||||
|
@ -940,6 +940,7 @@ SrsHttpResponseReader::SrsHttpResponseReader(SrsHttpMessage* msg, ISrsReader* re
|
|||
nb_total_read = 0;
|
||||
nb_left_chunk = 0;
|
||||
buffer = body;
|
||||
nb_chunk = 0;
|
||||
}
|
||||
|
||||
SrsHttpResponseReader::~SrsHttpResponseReader()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue