From 5301e497e376320aa70eff74c3697155b01fdee8 Mon Sep 17 00:00:00 2001 From: YLX <568414379@qq.com> Date: Mon, 25 Mar 2019 01:05:19 +0800 Subject: [PATCH] fix: support parse flv query params to http callback --- trunk/src/app/srs_app_http_conn.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/trunk/src/app/srs_app_http_conn.cpp b/trunk/src/app/srs_app_http_conn.cpp index 88efeedfd6..0a94def33a 100644 --- a/trunk/src/app/srs_app_http_conn.cpp +++ b/trunk/src/app/srs_app_http_conn.cpp @@ -861,6 +861,10 @@ SrsRequest* SrsHttpMessage::to_request(string vhost) } 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->objectEncoding = 0;