正在显示
1 个修改的文件
包含
5 行增加
和
0 行删除
trunk/src/app/srs_app_http_conn.cpp
100755 → 100644
| @@ -81,6 +81,11 @@ SrsHttpResponseWriter::~SrsHttpResponseWriter() | @@ -81,6 +81,11 @@ SrsHttpResponseWriter::~SrsHttpResponseWriter() | ||
| 81 | 81 | ||
| 82 | int SrsHttpResponseWriter::final_request() | 82 | int SrsHttpResponseWriter::final_request() |
| 83 | { | 83 | { |
| 84 | + // write the header data in memory. | ||
| 85 | + if (!header_wrote) { | ||
| 86 | + write_header(SRS_CONSTS_HTTP_OK); | ||
| 87 | + } | ||
| 88 | + | ||
| 84 | // complete the chunked encoding. | 89 | // complete the chunked encoding. |
| 85 | if (content_length == -1) { | 90 | if (content_length == -1) { |
| 86 | std::stringstream ss; | 91 | std::stringstream ss; |
-
请 注册 或 登录 后发表评论