changeset 781:836f099aa5cb

allow ranges for full flv files
author Igor Sysoev <igor@sysoev.ru>
date Mon, 16 Oct 2006 07:47:00 +0000
parents 6826f3b657d4
children 37d600dbe9f6
files src/http/modules/ngx_http_flv_module.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/http/modules/ngx_http_flv_module.c
+++ b/src/http/modules/ngx_http_flv_module.c
@@ -214,8 +214,12 @@ ngx_http_flv_handler(ngx_http_request_t 
 
         out[0].buf = b;
         out[0].next = &out[1];
+
+    } else {
+        r->allow_ranges = 1; 
     }
 
+
     b = ngx_pcalloc(r->pool, sizeof(ngx_buf_t));
     if (b == NULL) {
         return NGX_HTTP_INTERNAL_SERVER_ERROR;