diff --git a/trunk/src/app/srs_app_http_conn.cpp b/trunk/src/app/srs_app_http_conn.cpp old mode 100755 new mode 100644 index e812afc42..bab2c2953 --- a/trunk/src/app/srs_app_http_conn.cpp +++ b/trunk/src/app/srs_app_http_conn.cpp @@ -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;