comparison src/http/modules/ngx_http_chunked_filter.c @ 135:e29909bd9b8a

nginx-0.0.1-2003-09-28-23:29:06 import
author Igor Sysoev <igor@sysoev.ru>
date Sun, 28 Sep 2003 19:29:06 +0000
parents d7f606e25b99
children c71aeb75c071
comparison
equal deleted inserted replaced
134:d57c6835225c 135:e29909bd9b8a
33 static int (*next_body_filter) (ngx_http_request_t *r, ngx_chain_t *ch); 33 static int (*next_body_filter) (ngx_http_request_t *r, ngx_chain_t *ch);
34 34
35 35
36 static int ngx_http_chunked_header_filter(ngx_http_request_t *r) 36 static int ngx_http_chunked_header_filter(ngx_http_request_t *r)
37 { 37 {
38 if (r->headers_out.status == NGX_HTTP_NOT_MODIFIED) {
39 return next_header_filter(r);
40 }
41
38 if (r->headers_out.content_length == -1) { 42 if (r->headers_out.content_length == -1) {
39 if (r->http_version < NGX_HTTP_VERSION_11) { 43 if (r->http_version < NGX_HTTP_VERSION_11) {
40 r->keepalive = 0; 44 r->keepalive = 0;
41 45
42 } else { 46 } else {