1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

add ignoring _definst_ at the end of app (#1261)

This commit is contained in:
MakarovYaroslav 2018-11-11 08:31:29 +03:00 committed by winlin
parent b2066cbf68
commit e62ac29f48
5 changed files with 55 additions and 0 deletions

View file

@ -90,6 +90,9 @@ void srs_vhost_resolve(string& vhost, string& app, string& param)
app = srs_string_replace(app, "...", "?");
app = srs_string_replace(app, "&&", "?");
app = srs_string_replace(app, "=", "?");
if (srs_string_ends_with(app, "/_definst_")){
app = srs_erase_last_substr(app, "/_definst_");
}
if ((pos = app.find("?")) != std::string::npos) {
std::string query = app.substr(pos + 1);