Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix param's repeat in http callback #4199

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions trunk/src/protocol/srs_protocol_utility.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,11 @@ void srs_discovery_tc_url(string tcUrl, string& schema, string& host, string& vh
string fullUrl = srs_string_replace(tcUrl, "...vhost...", "?vhost=");

// Standard URL is:
// rtmp://ip/app/app2/stream?k=v
// rtmp://ip/app/app2/stream?k=v
// Where after last slash is stream.
fullUrl += stream.empty() ? "/" : (stream.at(0) == '/' ? stream : "/" + stream);
fullUrl += param.empty() ? "" : (param.at(0) == '?' ? param : "?" + param);
if (fullUrl.find_first_of("?#") == string::npos)
fullUrl += param.empty() ? "" : (param.at(0) == '?' ? param : "?" + param);

// First, we covert the FMLE URL to standard URL:
// rtmp://ip/app/app2?k=v/stream , or:
Expand Down
Loading