comparison src/http/ngx_http_header_filter.c @ 47:d81326c3b21b

nginx-0.0.1-2003-01-15-10:02:27 import
author Igor Sysoev <igor@sysoev.ru>
date Wed, 15 Jan 2003 07:02:27 +0000
parents 0e81ac0bb3e2
children a499e0d1f16e
comparison
equal deleted inserted replaced
46:f84a648211f4 47:d81326c3b21b
97 97
98 if (ims != NGX_ERROR && ims >= r->headers_out.last_modified_time) { 98 if (ims != NGX_ERROR && ims >= r->headers_out.last_modified_time) {
99 r->headers_out.status = NGX_HTTP_NOT_MODIFIED; 99 r->headers_out.status = NGX_HTTP_NOT_MODIFIED;
100 r->headers_out.content_length = -1; 100 r->headers_out.content_length = -1;
101 r->headers_out.content_type->key.len = 0; 101 r->headers_out.content_type->key.len = 0;
102 r->header_only = 1;
103 } 102 }
104 } 103 }
105 } 104 }
106 105
107 /* status line */ 106 /* status line */
112 if (r->headers_out.status < NGX_HTTP_MOVED_PERMANENTLY) { 111 if (r->headers_out.status < NGX_HTTP_MOVED_PERMANENTLY) {
113 status = r->headers_out.status - NGX_HTTP_OK; 112 status = r->headers_out.status - NGX_HTTP_OK;
114 113
115 } else if (r->headers_out.status < NGX_HTTP_BAD_REQUEST) { 114 } else if (r->headers_out.status < NGX_HTTP_BAD_REQUEST) {
116 status = r->headers_out.status - NGX_HTTP_MOVED_PERMANENTLY + 1; 115 status = r->headers_out.status - NGX_HTTP_MOVED_PERMANENTLY + 1;
116 r->header_only = 1;
117 117
118 } else if (r->headers_out.status < NGX_HTTP_INTERNAL_SERVER_ERROR) { 118 } else if (r->headers_out.status < NGX_HTTP_INTERNAL_SERVER_ERROR) {
119 status = r->headers_out.status - NGX_HTTP_BAD_REQUEST + 1 + 4; 119 status = r->headers_out.status - NGX_HTTP_BAD_REQUEST + 1 + 4;
120 120
121 } else { 121 } else {