allow range for partial flv response
diff --git a/src/http/modules/ngx_http_flv_module.c b/src/http/modules/ngx_http_flv_module.c
index 235ccdd..bed1b48 100644
--- a/src/http/modules/ngx_http_flv_module.c
+++ b/src/http/modules/ngx_http_flv_module.c
@@ -212,9 +212,6 @@
out[0].buf = b;
out[0].next = &out[1];
-
- } else {
- r->allow_ranges = 1;
}
@@ -228,6 +225,8 @@
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) {