mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
fix: support parse flv query params to http callback (#1339)
This commit is contained in:
parent
eeffb6d3ff
commit
ab833943e1
1 changed files with 4 additions and 0 deletions
|
@ -861,6 +861,10 @@ SrsRequest* SrsHttpMessage::to_request(string vhost)
|
||||||
}
|
}
|
||||||
|
|
||||||
req->tcUrl = "rtmp://" + vhost + req->app;
|
req->tcUrl = "rtmp://" + vhost + req->app;
|
||||||
|
std::string query = _uri->get_query();
|
||||||
|
if (!query.empty()) {
|
||||||
|
req->tcUrl = req->tcUrl + "?" + query;
|
||||||
|
}
|
||||||
req->pageUrl = get_request_header("Referer");
|
req->pageUrl = get_request_header("Referer");
|
||||||
req->objectEncoding = 0;
|
req->objectEncoding = 0;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue