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:
commit
b9750baa52
5 changed files with 30 additions and 11 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue