mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
merge from srs2.
This commit is contained in:
parent
266397acee
commit
61c0c168b9
2 changed files with 1 additions and 6 deletions
|
@ -345,12 +345,6 @@ int SrsHttpResponseReader::read(char* data, int nb_data, int* nb_read)
|
|||
return ret;
|
||||
}
|
||||
|
||||
// for some server, content-length is -1, while not chunked, directly read
|
||||
// everything as body.
|
||||
if (owner->content_length() == -1 && !owner->is_chunked()) {
|
||||
return read_specified(data, nb_data, nb_read);
|
||||
}
|
||||
|
||||
// chunked encoding.
|
||||
if (owner->is_chunked()) {
|
||||
return read_chunked(data, nb_data, nb_read);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue