comparison src/http/ngx_http_header_filter.c @ 432:11362a3e3911

nginx-0.0.11-2004-09-21-09:38:28 import
author Igor Sysoev <igor@sysoev.ru>
date Tue, 21 Sep 2004 05:38:28 +0000
parents 694cd6cdb714
children e56ab5ac8c65
comparison
equal deleted inserted replaced
431:358bbd2561b5 432:11362a3e3911
129 129
130 if (r->method == NGX_HTTP_HEAD) { 130 if (r->method == NGX_HTTP_HEAD) {
131 r->header_only = 1; 131 r->header_only = 1;
132 } 132 }
133 133
134 if (r->headers_out.last_modified_time != -1) {
135 if (r->headers_out.status != NGX_HTTP_OK
136 && r->headers_out.status != NGX_HTTP_NOT_MODIFIED
137 && r->headers_out.status != NGX_HTTP_PARTIAL_CONTENT)
138 {
139 r->headers_out.last_modified_time = -1;
140 r->headers_out.last_modified = NULL;
141 }
142 }
143
134 /* 2 is for trailing "\r\n" and 2 is for "\r\n" in the end of header */ 144 /* 2 is for trailing "\r\n" and 2 is for "\r\n" in the end of header */
135 len = sizeof("HTTP/1.x ") - 1 + 2 + 2; 145 len = sizeof("HTTP/1.x ") - 1 + 2 + 2;
136 146
137 /* status line */ 147 /* status line */
138 if (r->headers_out.status_line.len) { 148 if (r->headers_out.status_line.len) {