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

Merge branch '2.0release' into develop

This commit is contained in:
winlin 2015-03-17 15:37:03 +08:00
commit 79fbeeb8c6

View file

@ -1294,7 +1294,7 @@ SrsRequest* SrsHttpMessage::to_request(string vhost)
SrsRequest* req = new SrsRequest();
req->app = _uri->get_path();
ssize_t pos = string::npos;
size_t pos = string::npos;
if ((pos = req->app.rfind("/")) != string::npos) {
req->stream = req->app.substr(pos + 1);
req->app = req->app.substr(0, pos);