comparison src/http/modules/ngx_http_range_filter.c @ 335:d4241d7787fe

nginx-0.0.3-2004-05-14-20:51:47 import
author Igor Sysoev <igor@sysoev.ru>
date Fri, 14 May 2004 16:51:47 +0000
parents af451db3fe99
children 6bdf858bff8c
comparison
equal deleted inserted replaced
334:af451db3fe99 335:d4241d7787fe
112 112
113 if (r->http_version < NGX_HTTP_VERSION_10 113 if (r->http_version < NGX_HTTP_VERSION_10
114 || r->headers_out.status != NGX_HTTP_OK 114 || r->headers_out.status != NGX_HTTP_OK
115 || r->headers_out.content_length_n == -1 115 || r->headers_out.content_length_n == -1
116 || !(r->filter & NGX_HTTP_FILTER_ALLOW_RANGES)) 116 || !(r->filter & NGX_HTTP_FILTER_ALLOW_RANGES))
117
118 #if 0
119 /* STUB: we currently support ranges for file hunks only */
120 || !r->sendfile
121 || r->filter & NGX_HTTP_FILTER_NEED_IN_MEMORY
122 #endif
123
124 #if 0
125 || (r->headers_out.content_encoding
126 && r->headers_out.content_encoding->value.len))
127 #endif
128 { 117 {
129 return ngx_http_next_header_filter(r); 118 return ngx_http_next_header_filter(r);
130 } 119 }
131 120
132 if (r->headers_in.range == NULL 121 if (r->headers_in.range == NULL
504 *ll = hcl; 493 *ll = hcl;
505 494
506 return ngx_http_next_body_filter(r, out); 495 return ngx_http_next_body_filter(r, out);
507 } 496 }
508 497
509 /* TODO: several incoming hunks of proxied responses 498 /* TODO: alert */
510 and memory hunks on platforms that have no sendfile() */
511 499
512 return ngx_http_next_body_filter(r, in); 500 return ngx_http_next_body_filter(r, in);
513 } 501 }
514 502
515 503