mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
for #319, support initialize the parser to whether use jsonp
This commit is contained in:
parent
491ec11833
commit
01308ecc98
5 changed files with 40 additions and 35 deletions
|
@ -1255,7 +1255,7 @@ int SrsHttpApi::do_cycle()
|
|||
srs_trace("api get peer ip success. ip=%s", ip.c_str());
|
||||
|
||||
// initialize parser
|
||||
if ((ret = parser->initialize(HTTP_REQUEST)) != ERROR_SUCCESS) {
|
||||
if ((ret = parser->initialize(HTTP_REQUEST, true)) != ERROR_SUCCESS) {
|
||||
srs_error("api initialize http parser failed. ret=%d", ret);
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue