mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Merge branch 'develop' of https://github.com/tufang14/simple-rtmp-server into tufang14-develop
This commit is contained in:
commit
6855ab4c52
1 changed files with 2 additions and 2 deletions
|
@ -1104,8 +1104,8 @@ int SrsHttpServer::hijack(SrsHttpMessage* request, ISrsHttpHandler** ph)
|
||||||
int ret = ERROR_SUCCESS;
|
int ret = ERROR_SUCCESS;
|
||||||
|
|
||||||
// when handler not the root, we think the handler is ok.
|
// when handler not the root, we think the handler is ok.
|
||||||
ISrsHttpHandler* h = ph? *ph : NULL;
|
ISrsHttpHandler* h = *ph? *ph : NULL;
|
||||||
if (h->entry && h->entry->pattern != "/") {
|
if (h && h->entry && h->entry->pattern != "/") {
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue