1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

for #319, dumps the http static, remux and globals.

This commit is contained in:
winlin 2015-08-28 23:51:23 +08:00
parent 5efd1912f2
commit bdfd0ae09e
4 changed files with 326 additions and 2 deletions

View file

@ -937,7 +937,7 @@ int SrsGoApiRaw::serve_http(ISrsHttpResponseWriter* w, ISrsHttpMessage* r)
if (vhost.empty()) {
ret = ERROR_SYSTEM_CONFIG_RAW_PARAMS;
srs_error("raw api query vhost invalid vhost=%s. ret=%d", vhost.c_str(), ret);
return ret;
return srs_api_response_code(w, r, ret);
}
SrsConfDirective* root = _srs_config->get_root();
@ -945,7 +945,7 @@ int SrsGoApiRaw::serve_http(ISrsHttpResponseWriter* w, ISrsHttpMessage* r)
if (!conf) {
ret = ERROR_SYSTEM_CONFIG_RAW_PARAMS;
srs_error("raw api query vhost invalid vhost=%s. ret=%d", vhost.c_str(), ret);
return ret;
return srs_api_response_code(w, r, ret);
}
SrsAmf0Object* data = SrsAmf0Any::object();