Mercurial > hg > nginx-quic
comparison src/http/modules/ngx_http_not_modified_filter_module.c @ 1631:b67b75bb09b7
omit unnecessary test, because NGX_ERROR == -1,
but r->headers_out.last_modified_time != -1 at this point
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 09 Nov 2007 15:43:43 +0000 |
parents | 7e24168b0853 |
children | c59485781f0a a69e3766f698 |
comparison
equal
deleted
inserted
replaced
1630:9706372f8916 | 1631:b67b75bb09b7 |
---|---|
68 | 68 |
69 /* | 69 /* |
70 * I think that the equality of the dates is correcter | 70 * I think that the equality of the dates is correcter |
71 */ | 71 */ |
72 | 72 |
73 if (ims != NGX_ERROR && ims == r->headers_out.last_modified_time) { | 73 if (ims == r->headers_out.last_modified_time) { |
74 r->headers_out.status = NGX_HTTP_NOT_MODIFIED; | 74 r->headers_out.status = NGX_HTTP_NOT_MODIFIED; |
75 r->headers_out.content_type.len = 0; | 75 r->headers_out.content_type.len = 0; |
76 ngx_http_clear_content_length(r); | 76 ngx_http_clear_content_length(r); |
77 ngx_http_clear_accept_ranges(r); | 77 ngx_http_clear_accept_ranges(r); |
78 } | 78 } |