mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
fix #442: HTTP API kickoff client.
This commit is contained in:
parent
0e3128d3e3
commit
e8c0ca7af0
10 changed files with 121 additions and 18 deletions
10
trunk/src/app/srs_app_http_conn.cpp
Normal file → Executable file
10
trunk/src/app/srs_app_http_conn.cpp
Normal file → Executable file
|
@ -104,11 +104,11 @@ int SrsHttpResponseWriter::write(char* data, int size)
|
|||
|
||||
if (!header_wrote) {
|
||||
write_header(SRS_CONSTS_HTTP_OK);
|
||||
|
||||
if ((ret = send_header(data, size)) != ERROR_SUCCESS) {
|
||||
srs_error("http: send header failed. ret=%d", ret);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
if ((ret = send_header(data, size)) != ERROR_SUCCESS) {
|
||||
srs_error("http: send header failed. ret=%d", ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
// check the bytes send and content length.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue