]> git.kaiwu.me - nginx.git/commitdiff
allow range for partial flv response
authorIgor Sysoev <igor@sysoev.ru>
Tue, 29 Jul 2008 13:58:56 +0000 (13:58 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Tue, 29 Jul 2008 13:58:56 +0000 (13:58 +0000)
src/http/modules/ngx_http_flv_module.c

index 235ccddea1dc7ff1e4679701f62246f53005e1df..bed1b48a61c3327311f5b46a5c42b13ecc8b2fc6 100644 (file)
@@ -212,9 +212,6 @@ ngx_http_flv_handler(ngx_http_request_t *r)
 
         out[0].buf = b;
         out[0].next = &out[1];
-
-    } else {
-        r->allow_ranges = 1;
     }
 
 
@@ -228,6 +225,8 @@ ngx_http_flv_handler(ngx_http_request_t *r)
         return NGX_HTTP_INTERNAL_SERVER_ERROR;
     }
 
+    r->allow_ranges = 1;
+
     rc = ngx_http_send_header(r);
 
     if (rc == NGX_ERROR || rc > NGX_OK || r->header_only) {