mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
refine http request parse. 2.0.132.
This commit is contained in:
parent
4325809daf
commit
3982ec1d87
9 changed files with 234 additions and 134 deletions
|
@ -165,8 +165,14 @@ int SrsHttpClient::get(SrsHttpUri* uri, std::string req, SrsHttpMessage** ppmsg)
|
|||
srs_error("parse http post response failed. ret=%d", ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
srs_assert(msg);
|
||||
|
||||
// for GET, server response no uri, we update with request uri.
|
||||
if ((ret = msg->update(uri->get_url())) != ERROR_SUCCESS) {
|
||||
srs_freep(msg);
|
||||
return ret;
|
||||
}
|
||||
|
||||
*ppmsg = msg;
|
||||
srs_info("parse http get response success.");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue