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
2015-09-01 12:27:53 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
06c7ae62ee6ebc5303d70f5d2b34903b8053a411
06c7ae62
1 parent
11c40968
for #319, refine the error code for RAW APi.
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
4 行增加
和
3 行删除
trunk/src/app/srs_app_http_api.cpp
trunk/src/kernel/srs_kernel_error.hpp
trunk/src/app/srs_app_http_api.cpp
查看文件 @
06c7ae6
...
...
@@ -930,7 +930,7 @@ int SrsGoApiRaw::serve_http(ISrsHttpResponseWriter* w, ISrsHttpMessage* r)
std
::
string
scope
=
r
->
query_get
(
"scope"
);
std
::
string
vhost
=
r
->
query_get
(
"vhost"
);
if
(
scope
.
empty
()
||
(
scope
!=
"global"
&&
scope
!=
"vhost"
))
{
ret
=
ERROR_SYSTEM_CONFIG_RAW_
PARAMS
;
ret
=
ERROR_SYSTEM_CONFIG_RAW_
NOT_ALLOWED
;
srs_error
(
"raw api query invalid scope=%s. ret=%d"
,
scope
.
c_str
(),
ret
);
return
srs_api_response_code
(
w
,
r
,
ret
);
}
...
...
@@ -988,7 +988,7 @@ int SrsGoApiRaw::serve_http(ISrsHttpResponseWriter* w, ISrsHttpMessage* r)
std
::
string
scope
=
r
->
query_get
(
"scope"
);
std
::
string
value
=
r
->
query_get
(
"value"
);
if
(
scope
.
empty
()
||
(
scope
!=
"global.listen"
&&
scope
!=
"global.pid"
))
{
ret
=
ERROR_SYSTEM_CONFIG_RAW_
PARAMS
;
ret
=
ERROR_SYSTEM_CONFIG_RAW_
NOT_ALLOWED
;
srs_error
(
"raw api query invalid scope=%s. ret=%d"
,
scope
.
c_str
(),
ret
);
return
srs_api_response_code
(
w
,
r
,
ret
);
}
...
...
trunk/src/kernel/srs_kernel_error.hpp
查看文件 @
06c7ae6
...
...
@@ -100,7 +100,8 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#define ERROR_SYSTEM_CONFIG_PERSISTENCE 1059
#define ERROR_SYSTEM_CONFIG_RAW 1060
#define ERROR_SYSTEM_CONFIG_RAW_DISABLED 1061
#define ERROR_SYSTEM_CONFIG_RAW_PARAMS 1062
#define ERROR_SYSTEM_CONFIG_RAW_NOT_ALLOWED 1062
#define ERROR_SYSTEM_CONFIG_RAW_PARAMS 1063
///////////////////////////////////////////////////////
// RTMP protocol error.
...
...
请
注册
或
登录
后发表评论