mirror of
https://github.com/nginx/nginx.git
synced 2025-06-07 17:52:38 +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;
|
size += end - start;
|
||||||
|
|
||||||
if (--ranges == 0) {
|
if (ranges-- == 0) {
|
||||||
break;
|
return NGX_DECLINED;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user