Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nginx/nginx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2008-07-29 17:58:56 +0400
committerIgor Sysoev <igor@sysoev.ru>2008-07-29 17:58:56 +0400
commit88634bf06ba45be19ab921f060ccd21f005cefd6 (patch)
tree05ed6c4e5e3ec0bbd776e905e345ccc40ed2d280 /src
parent4a1b0329019e19079eae073089c55ed533c74931 (diff)
allow range for partial flv response
Diffstat (limited to 'src')
-rw-r--r--src/http/modules/ngx_http_flv_module.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/http/modules/ngx_http_flv_module.c b/src/http/modules/ngx_http_flv_module.c
index 235ccddea..bed1b48a6 100644
--- 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 *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) {