fix the http zero content length bug.
This commit is contained in:
parent
d07bfa459a
commit
f0fc093b19
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…
Reference in New Issue
Block a user