]> git.kaiwu.me - nginx.git/commitdiff
allow ranges for full flv files
authorIgor Sysoev <igor@sysoev.ru>
Mon, 16 Oct 2006 07:47:00 +0000 (07:47 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Mon, 16 Oct 2006 07:47:00 +0000 (07:47 +0000)
src/http/modules/ngx_http_flv_module.c

index 6030b7ba0e3d7d158130c428b5099ffc232cd94e..52e456b1d4882212d9cb743df9ba353732f5d89b 100644 (file)
@@ -214,8 +214,12 @@ ngx_http_flv_handler(ngx_http_request_t *r)
 
         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;