comparison src/http/ngx_http_header_filter.c @ 144:ef8c87afcfc5

nginx-0.0.1-2003-10-12-20:49:16 import
author Igor Sysoev <igor@sysoev.ru>
date Sun, 12 Oct 2003 16:49:16 +0000
parents 5526213be452
children c71aeb75c071
comparison
equal deleted inserted replaced
143:5526213be452 144:ef8c87afcfc5
119 status = r->headers_out.status - NGX_HTTP_OK; 119 status = r->headers_out.status - NGX_HTTP_OK;
120 120
121 } else if (r->headers_out.status < NGX_HTTP_BAD_REQUEST) { 121 } else if (r->headers_out.status < NGX_HTTP_BAD_REQUEST) {
122 /* 3XX */ 122 /* 3XX */
123 status = r->headers_out.status - NGX_HTTP_MOVED_PERMANENTLY + 8; 123 status = r->headers_out.status - NGX_HTTP_MOVED_PERMANENTLY + 8;
124 r->header_only = 1; 124
125 if (r->headers_out.status == NGX_HTTP_NOT_MODIFIED) {
126 r->header_only = 1;
127 }
125 128
126 } else if (r->headers_out.status < NGX_HTTP_INTERNAL_SERVER_ERROR) { 129 } else if (r->headers_out.status < NGX_HTTP_INTERNAL_SERVER_ERROR) {
127 /* 4XX */ 130 /* 4XX */
128 status = r->headers_out.status - NGX_HTTP_BAD_REQUEST + 8 + 4; 131 status = r->headers_out.status - NGX_HTTP_BAD_REQUEST + 8 + 4;
129 132