From: Igor Sysoev Date: Tue, 29 Jul 2008 13:58:56 +0000 (+0000) Subject: allow range for partial flv response X-Git-Tag: release-0.7.7~8 X-Git-Url: http://git.kaiwu.me/postgresql/log/contrib/postgres_fdw/postgres_fdw.c?a=commitdiff_plain;h=88634bf06ba45be19ab921f060ccd21f005cefd6;p=nginx.git 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 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) {