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
2016-01-13 12:52:19 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
61c0c168b921763c7d5013329fb4d947ac6dd450
61c0c168
1 parent
266397ac
merge from srs2.
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
1 行增加
和
6 行删除
trunk/src/app/srs_app_http_api.cpp
trunk/src/app/srs_app_http_conn.cpp
trunk/src/app/srs_app_http_api.cpp
查看文件 @
61c0c16
...
...
@@ -46,6 +46,7 @@ using namespace std;
#include <srs_kernel_consts.hpp>
#include <srs_app_server.hpp>
#include <srs_protocol_amf0.hpp>
#include <srs_protocol_utility.hpp>
int
srs_api_response_jsonp
(
ISrsHttpResponseWriter
*
w
,
string
callback
,
string
data
)
{
...
...
trunk/src/app/srs_app_http_conn.cpp
查看文件 @
61c0c16
...
...
@@ -345,12 +345,6 @@ int SrsHttpResponseReader::read(char* data, int nb_data, int* nb_read)
return
ret
;
}
// for some server, content-length is -1, while not chunked, directly read
// everything as body.
if
(
owner
->
content_length
()
==
-
1
&&
!
owner
->
is_chunked
())
{
return
read_specified
(
data
,
nb_data
,
nb_read
);
}
// chunked encoding.
if
(
owner
->
is_chunked
())
{
return
read_chunked
(
data
,
nb_data
,
nb_read
);
...
...
请
注册
或
登录
后发表评论