1
0
Fork 0
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:
winlin 2015-09-19 13:37:56 +08:00
parent b59d9ba6a1
commit 3042115385
5 changed files with 40 additions and 40 deletions

View file

@ -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",