mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
refine json to_str to dumps.
This commit is contained in:
parent
b59d9ba6a1
commit
3042115385
5 changed files with 40 additions and 40 deletions
|
@ -84,7 +84,7 @@ void SrsHttpHeartbeat::heartbeat()
|
|||
return;
|
||||
}
|
||||
|
||||
std::string req = obj->to_json();
|
||||
std::string req = obj->dumps();
|
||||
ISrsHttpMessage* msg = NULL;
|
||||
if ((ret = http.post(uri.get_path(), req, &msg)) != ERROR_SUCCESS) {
|
||||
srs_info("http post hartbeart uri failed. url=%s, request=%s, ret=%d",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue