mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Fix #904, replace NXJSON(LGPL) with json-parser(BSD). 3.0.23
This commit is contained in:
parent
6993ac226f
commit
54411e0768
6 changed files with 1427 additions and 572 deletions
|
@ -466,7 +466,7 @@ int SrsHttpHooks::do_post(SrsHttpClient* hc, std::string url, std::string req, i
|
|||
}
|
||||
|
||||
// parse string res to json.
|
||||
SrsJsonAny* info = SrsJsonAny::loads((char*)res.c_str());
|
||||
SrsJsonAny* info = SrsJsonAny::loads(res);
|
||||
if (!info) {
|
||||
ret = ERROR_HTTP_DATA_INVALID;
|
||||
srs_error("invalid response %s. ret=%d", res.c_str(), ret);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue