1
0
Fork 0
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:
YLX 2019-04-05 15:44:00 +08:00 committed by winlin
parent eeffb6d3ff
commit ab833943e1

View file

@ -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;