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:25:32 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ced050829edf404567e79fb6491fad76561dee40
ced05082
1 parent
c5d3b11a
fix bug of http, change to 0.9.50
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
11 行增加
和
5 行删除
trunk/src/app/srs_app_http_conn.cpp
trunk/src/core/srs_core.hpp
trunk/src/app/srs_app_http_conn.cpp
查看文件 @
ced0508
...
...
@@ -132,8 +132,11 @@ bool SrsHttpVhost::can_handle(const char* path, int length, const char** /*pchil
bool
SrsHttpVhost
::
is_handler_valid
(
SrsHttpMessage
*
req
,
int
&
status_code
,
std
::
string
&
reason_phrase
)
{
std
::
string
fullpath
=
_dir
+
"/"
+
req
->
match
()
->
unmatched_url
;
if
(
req
->
match
()
->
unmatched_url
.
empty
())
{
fullpath
+=
req
->
match
()
->
matched_url
;
if
(
_mount
==
"/"
)
{
fullpath
=
_dir
+
"/"
+
req
->
match
()
->
matched_url
;
if
(
!
req
->
match
()
->
unmatched_url
.
empty
())
{
fullpath
+=
"/"
+
req
->
match
()
->
unmatched_url
;
}
}
if
(
::
access
(
fullpath
.
c_str
(),
F_OK
|
R_OK
)
<
0
)
{
...
...
@@ -152,8 +155,11 @@ int SrsHttpVhost::do_process_request(SrsSocket* skt, SrsHttpMessage* req)
int
ret
=
ERROR_SUCCESS
;
std
::
string
fullpath
=
_dir
+
"/"
+
req
->
match
()
->
unmatched_url
;
if
(
req
->
match
()
->
unmatched_url
.
empty
())
{
fullpath
+=
req
->
match
()
->
matched_url
;
if
(
_mount
==
"/"
)
{
fullpath
=
_dir
+
"/"
+
req
->
match
()
->
matched_url
;
if
(
!
req
->
match
()
->
unmatched_url
.
empty
())
{
fullpath
+=
"/"
+
req
->
match
()
->
unmatched_url
;
}
}
if
(
srs_string_ends_with
(
fullpath
,
"/"
))
{
...
...
trunk/src/core/srs_core.hpp
查看文件 @
ced0508
...
...
@@ -31,7 +31,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// current release version
#define VERSION_MAJOR "0"
#define VERSION_MINOR "9"
#define VERSION_REVISION "
49
"
#define VERSION_REVISION "
50
"
#define RTMP_SIG_SRS_VERSION VERSION_MAJOR"."VERSION_MINOR"."VERSION_REVISION
// server info.
#define RTMP_SIG_SRS_KEY "srs"
...
...
请
注册
或
登录
后发表评论