Now if client requests more ranges than "max_ranges" permits,

nginx disables ranges and returns just the source response.
This commit is contained in:
Igor Sysoev 2011-09-01 13:03:55 +00:00
parent f560419c54
commit 09be2f18c5

View File

@ -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;
}
}