mirror of
https://github.com/nginx/nginx.git
synced 2025-01-19 01:42:58 +08: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
@ -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…
Reference in New Issue
Block a user