comparison src/http/modules/ngx_http_range_filter_module.c @ 4063:8d70904b6c48

Now if client requests more ranges than "max_ranges" permits, nginx disables ranges and returns just the source response.
author Igor Sysoev <igor@sysoev.ru>
date Thu, 01 Sep 2011 13:03:55 +0000
parents 82738a316a54
children d620f497c50f
comparison
equal deleted inserted replaced
4062:82738a316a54 4063:8d70904b6c48
321 range->start = start; 321 range->start = start;
322 range->end = end; 322 range->end = end;
323 323
324 size += end - start; 324 size += end - start;
325 325
326 if (--ranges == 0) { 326 if (ranges-- == 0) {
327 break; 327 return NGX_DECLINED;
328 } 328 }
329 } 329 }
330 330
331 if (*p++ != ',') { 331 if (*p++ != ',') {
332 break; 332 break;