Mercurial > hg > nginx-quic
comparison src/http/modules/ngx_http_not_modified_filter_module.c @ 553:45033d85b30e release-0.2.5
nginx-0.2.5-RELEASE import
*) Change: the duplicate value of the ngx_http_geo_module variable now
causes the warning and changes old value.
*) Feature: the ngx_http_ssi_module supports the "set" command.
*) Feature: the ngx_http_ssi_module supports the "file" parameter in
the "include" command.
*) Feature: the ngx_http_ssi_module supports the variable value
substitutions in expressions of the "if" command.
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 04 Oct 2005 10:38:53 +0000 |
parents | b09ee85d0ac8 |
children | 4d9ea73a627a |
comparison
equal
deleted
inserted
replaced
552:b6f3197058d3 | 553:45033d85b30e |
---|---|
50 static ngx_int_t ngx_http_not_modified_header_filter(ngx_http_request_t *r) | 50 static ngx_int_t ngx_http_not_modified_header_filter(ngx_http_request_t *r) |
51 { | 51 { |
52 time_t ims; | 52 time_t ims; |
53 | 53 |
54 if (r->headers_out.status != NGX_HTTP_OK | 54 if (r->headers_out.status != NGX_HTTP_OK |
55 || r->main | 55 || r->main != r |
56 || r->headers_in.if_modified_since == NULL | 56 || r->headers_in.if_modified_since == NULL |
57 || r->headers_out.last_modified_time == -1) | 57 || r->headers_out.last_modified_time == -1) |
58 { | 58 { |
59 return ngx_http_next_header_filter(r); | 59 return ngx_http_next_header_filter(r); |
60 } | 60 } |