mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
refine http read, support c style api
This commit is contained in:
parent
5c00ce8a96
commit
0a7cea063c
1 changed files with 3 additions and 2 deletions
|
@ -1267,8 +1267,9 @@ int SrsHttpMessage::body_read_all(string& body)
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
srs_assert (nb_read > 0);
|
if (nb_read > 0) {
|
||||||
body.append(buf, nb_read);
|
body.append(buf, nb_read);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue