mirror of
https://github.com/ossrs/srs.git
synced 2025-02-13 11:51:57 +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()
|
||||
{
|
||||
// write the header data in memory.
|
||||
if (!header_wrote) {
|
||||
write_header(SRS_CONSTS_HTTP_OK);
|
||||
}
|
||||
|
||||
// complete the chunked encoding.
|
||||
if (content_length == -1) {
|
||||
std::stringstream ss;
|
||||
|
|
Loading…
Reference in a new issue