1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

for #293, #277, support http chunked encoding

This commit is contained in:
winlin 2015-01-19 01:05:24 +08:00
parent 15d87537a1
commit b04888a35d
3 changed files with 48 additions and 4 deletions

View file

@ -304,7 +304,7 @@ int SrsLiveStream::serve_http(ISrsGoHttpResponseWriter* w, SrsHttpMessage* r)
// TODO: FIMXE: add pithy print.
// write http header for streaming.
w->header()->set_content_length((int64_t)2 * 1024 * 1024 * 1024);
// use chunked encoding, for we donot specifes the content length.
if (serve_flv_streaming) {
w->header()->set_content_type("video/x-flv");
}