diff src/http/modules/ngx_http_flv_module.c @ 2122:d090fa684433

allow range for partial flv response
author Igor Sysoev <igor@sysoev.ru>
date Tue, 29 Jul 2008 13:58:56 +0000
parents c8039b26a949
children 25add486e7aa
line wrap: on
line diff
--- a/src/http/modules/ngx_http_flv_module.c
+++ b/src/http/modules/ngx_http_flv_module.c
@@ -212,9 +212,6 @@ ngx_http_flv_handler(ngx_http_request_t 
 
         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 
         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) {