mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Support parsing vhost splited by single seperator. 2.0.268
This commit is contained in:
parent
01a4503ceb
commit
c5f31570cd
4 changed files with 8 additions and 1 deletions
|
@ -444,6 +444,11 @@ VOID TEST(ProtocolUtilityTest, VhostResolve)
|
|||
srs_vhost_resolve(vhost, app, param);
|
||||
EXPECT_STREQ("changed1", vhost.c_str());
|
||||
EXPECT_STREQ("app", app.c_str());
|
||||
|
||||
app = "app?vhost=changed1&query=true";
|
||||
srs_vhost_resolve(vhost, app, param);
|
||||
EXPECT_STREQ("changed1", vhost.c_str());
|
||||
EXPECT_STREQ("app", app.c_str());
|
||||
|
||||
app = "app?other=true&&vhost=changed2&&query=true";
|
||||
srs_vhost_resolve(vhost, app, param);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue