mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Refine code for changing id of stat to string
This commit is contained in:
parent
1c41f5d796
commit
d520679547
5 changed files with 7 additions and 7 deletions
|
@ -205,7 +205,7 @@ srs_error_t SrsGoApiRtcPlay::do_serve_http(ISrsHttpResponseWriter* w, ISrsHttpMe
|
|||
local_sdp_str = srs_string_replace(local_sdp_str.c_str(), "\r\n", "\\r\\n");
|
||||
|
||||
res->set("code", SrsJsonAny::integer(ERROR_SUCCESS));
|
||||
res->set("server", SrsJsonAny::integer(SrsStatistic::instance()->server_id()));
|
||||
res->set("server", SrsJsonAny::str(SrsStatistic::instance()->server_id().c_str()));
|
||||
|
||||
// TODO: add candidates in response json?
|
||||
|
||||
|
@ -557,7 +557,7 @@ srs_error_t SrsGoApiRtcPublish::do_serve_http(ISrsHttpResponseWriter* w, ISrsHtt
|
|||
local_sdp_str = srs_string_replace(local_sdp_str.c_str(), "\r\n", "\\r\\n");
|
||||
|
||||
res->set("code", SrsJsonAny::integer(ERROR_SUCCESS));
|
||||
res->set("server", SrsJsonAny::integer(SrsStatistic::instance()->server_id()));
|
||||
res->set("server", SrsJsonAny::str(SrsStatistic::instance()->server_id().c_str()));
|
||||
|
||||
// TODO: add candidates in response json?
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue