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

For #1339, Support HTTP-FLV params.

This commit is contained in:
winlin 2019-04-05 18:44:50 +08:00
commit b9750baa52
5 changed files with 30 additions and 11 deletions

View file

@ -593,6 +593,11 @@ SrsRequest* SrsHttpMessage::to_request(string vhost)
req->tcUrl = "rtmp://" + vhost + "/" + req->app;
req->pageUrl = get_request_header("Referer");
req->objectEncoding = 0;
std::string query = _uri->get_query();
if (!query.empty()) {
req->tcUrl = req->tcUrl + "?" + query;
}
srs_discovery_tc_url(req->tcUrl, req->schema, req->host, req->vhost, req->app, req->stream, req->port, req->param);
req->strip();