mirror of
https://github.com/nginx/nginx.git
synced 2025-06-11 20:53:30 +08:00
allow ranges for full flv files
This commit is contained in:
parent
d54c497d97
commit
9ab9f0a220
@ -214,8 +214,12 @@ 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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
b = ngx_pcalloc(r->pool, sizeof(ngx_buf_t));
|
b = ngx_pcalloc(r->pool, sizeof(ngx_buf_t));
|
||||||
if (b == NULL) {
|
if (b == NULL) {
|
||||||
return NGX_HTTP_INTERNAL_SERVER_ERROR;
|
return NGX_HTTP_INTERNAL_SERVER_ERROR;
|
||||||
|
Loading…
Reference in New Issue
Block a user