mirror of
https://github.com/nginx/nginx.git
synced 2025-01-21 22:03:15 -06:00
allow range for partial flv response
This commit is contained in:
parent
4a1b032901
commit
88634bf06b
@ -212,9 +212,6 @@ ngx_http_flv_handler(ngx_http_request_t *r)
|
|||||||
|
|
||||||
out[0].buf = b;
|
out[0].buf = b;
|
||||||
out[0].next = &out[1];
|
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;
|
return NGX_HTTP_INTERNAL_SERVER_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
r->allow_ranges = 1;
|
||||||
|
|
||||||
rc = ngx_http_send_header(r);
|
rc = ngx_http_send_header(r);
|
||||||
|
|
||||||
if (rc == NGX_ERROR || rc > NGX_OK || r->header_only) {
|
if (rc == NGX_ERROR || rc > NGX_OK || r->header_only) {
|
||||||
|
Loading…
Reference in New Issue
Block a user