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

For #1181, Add utest

This commit is contained in:
winlin 2018-08-11 13:16:59 +08:00
parent 01d8bba455
commit 928c6ab091
3 changed files with 96 additions and 1 deletions

View file

@ -243,8 +243,8 @@ srs_error_t SrsResponseOnlyHttpConn::on_got_http_message(ISrsHttpMessage* msg)
}
// drop all request body.
char body[4096];
while (!br->eof()) {
char body[4096];
if ((err = br->read(body, 4096, NULL)) != srs_success) {
return srs_error_wrap(err, "read response");
}