mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Merge branch '2.0release' into develop
This commit is contained in:
commit
adb74dc74e
1 changed files with 5 additions and 0 deletions
5
trunk/src/app/srs_app_http_conn.cpp
Executable file → Normal file
5
trunk/src/app/srs_app_http_conn.cpp
Executable file → Normal file
|
@ -81,6 +81,11 @@ SrsHttpResponseWriter::~SrsHttpResponseWriter()
|
||||||
|
|
||||||
int SrsHttpResponseWriter::final_request()
|
int SrsHttpResponseWriter::final_request()
|
||||||
{
|
{
|
||||||
|
// write the header data in memory.
|
||||||
|
if (!header_wrote) {
|
||||||
|
write_header(SRS_CONSTS_HTTP_OK);
|
||||||
|
}
|
||||||
|
|
||||||
// complete the chunked encoding.
|
// complete the chunked encoding.
|
||||||
if (content_length == -1) {
|
if (content_length == -1) {
|
||||||
std::stringstream ss;
|
std::stringstream ss;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue