comparison src/http/ngx_http_special_response.c @ 294:5cfd65b8b0a7

nginx-0.0.3-2004-03-23-09:01:52 import
author Igor Sysoev <igor@sysoev.ru>
date Tue, 23 Mar 2004 06:01:52 +0000
parents ec3c049681fd
children ba876b26b76d
comparison
equal deleted inserted replaced
293:ec3c049681fd 294:5cfd65b8b0a7
183 ngx_http_err_page_t *err_page; 183 ngx_http_err_page_t *err_page;
184 ngx_http_core_loc_conf_t *clcf; 184 ngx_http_core_loc_conf_t *clcf;
185 185
186 rc = ngx_http_discard_body(r); 186 rc = ngx_http_discard_body(r);
187 187
188 if (rc != NGX_OK) { 188 if (rc == NGX_HTTP_INTERNAL_SERVER_ERROR) {
189 return rc; 189 error = NGX_HTTP_INTERNAL_SERVER_ERROR;
190 } 190 }
191 191
192 r->headers_out.status = error; 192 r->headers_out.status = error;
193 193
194 if (r->keepalive != 0) { 194 if (r->keepalive != 0) {