comparison src/http/ngx_http_header_filter.c @ 63:36d2c25cc9bb

nginx-0.0.1-2003-02-26-23:21:43 import
author Igor Sysoev <igor@sysoev.ru>
date Wed, 26 Feb 2003 20:21:43 +0000
parents a499e0d1f16e
children 34d647deb1da
comparison
equal deleted inserted replaced
62:8ccba41a678e 63:36d2c25cc9bb
93 r->headers_in.if_modified_since->value.len); 93 r->headers_in.if_modified_since->value.len);
94 94
95 ngx_log_debug(r->connection->log, "%d %d" _ 95 ngx_log_debug(r->connection->log, "%d %d" _
96 ims _ r->headers_out.last_modified_time); 96 ims _ r->headers_out.last_modified_time);
97 97
98 if (ims != NGX_ERROR && ims >= r->headers_out.last_modified_time) { 98 /* I think that the date equality is correcter */
99 if (ims != NGX_ERROR && ims == r->headers_out.last_modified_time) {
99 r->headers_out.status = NGX_HTTP_NOT_MODIFIED; 100 r->headers_out.status = NGX_HTTP_NOT_MODIFIED;
100 r->headers_out.content_length = -1; 101 r->headers_out.content_length = -1;
101 r->headers_out.content_type->key.len = 0; 102 r->headers_out.content_type->key.len = 0;
102 } 103 }
103 } 104 }