mirror of
https://github.com/nginx/nginx.git
synced 2026-06-26 20:01:45 +00:00
Now if client requests more ranges than "max_ranges" permits,
nginx disables ranges and returns just the source response.
This commit is contained in:
parent
f560419c54
commit
09be2f18c5
1 changed files with 2 additions and 2 deletions
|
|
@ -323,8 +323,8 @@ ngx_http_range_parse(ngx_http_request_t *r, ngx_http_range_filter_ctx_t *ctx,
|
|||
|
||||
size += end - start;
|
||||
|
||||
if (--ranges == 0) {
|
||||
break;
|
||||
if (ranges-- == 0) {
|
||||
return NGX_DECLINED;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue