Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
胡斌
/
srs
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
winlin
2014-04-04 23:16:31 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c5d3b11a6eb38c6dbac6bc70c5596d004fb151a0
c5d3b11a
1 parent
3c63cf0a
update http stream. change to 0.9.49
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
13 行增加
和
4 行删除
trunk/src/app/srs_app_http_conn.cpp
trunk/src/app/srs_app_http_conn.cpp
查看文件 @
c5d3b11
...
...
@@ -52,9 +52,8 @@ SrsHttpRoot::~SrsHttpRoot()
int
SrsHttpRoot
::
initialize
()
{
int
ret
=
ERROR_SUCCESS
;
// add root
handlers
.
push_back
(
new
SrsHttpVhost
(
"__http__"
,
"/"
,
_srs_config
->
get_http_stream_dir
()));
bool
default_root_exists
=
false
;
// add other virtual path
SrsConfDirective
*
root
=
_srs_config
->
get_root
();
...
...
@@ -74,6 +73,16 @@ int SrsHttpRoot::initialize()
std
::
string
dir
=
_srs_config
->
get_vhost_http_dir
(
vhost
);
handlers
.
push_back
(
new
SrsHttpVhost
(
vhost
,
mount
,
dir
));
if
(
mount
==
"/"
)
{
default_root_exists
=
true
;
}
}
if
(
!
default_root_exists
)
{
// add root
handlers
.
push_back
(
new
SrsHttpVhost
(
"__http__"
,
"/"
,
_srs_config
->
get_http_stream_dir
()));
}
return
ret
;
...
...
@@ -86,7 +95,7 @@ bool SrsHttpRoot::can_handle(const char* path, int length, const char** pchild)
*
pchild
=
path
;
// never handle request for root.
return
fals
e
;
return
tru
e
;
}
bool
SrsHttpRoot
::
is_handler_valid
(
SrsHttpMessage
*
req
,
int
&
status_code
,
std
::
string
&
reason_phrase
)
...
...
请
注册
或
登录
后发表评论