refine http read, support c style api
This commit is contained in:
parent
5c00ce8a96
commit
0a7cea063c
|
|
@ -1267,8 +1267,9 @@ int SrsHttpMessage::body_read_all(string& body)
|
|||
return ret;
|
||||
}
|
||||
|
||||
srs_assert (nb_read > 0);
|
||||
body.append(buf, nb_read);
|
||||
if (nb_read > 0) {
|
||||
body.append(buf, nb_read);
|
||||
}
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user