Mercurial > hg > nginx-vendor-0-5
diff src/http/ngx_http_special_response.c @ 226:21f2ace7c936 NGINX_0_3_60
nginx 0.3.60
*) Bugfix: a worker process may got caught in an endless loop while an
error redirection; bug appeared in 0.3.59.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Fri, 18 Aug 2006 00:00:00 +0400 |
parents | 9909a161eb28 |
children | 9eebc1b2cdbb |
line wrap: on
line diff
--- a/src/http/ngx_http_special_response.c +++ b/src/http/ngx_http_special_response.c @@ -312,6 +312,7 @@ ngx_http_special_response_handler(ngx_ht } r->headers_out.status = error; + r->err_status = error; if (r->keepalive != 0) { switch (error) { @@ -340,7 +341,7 @@ ngx_http_special_response_handler(ngx_ht clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module); - if (clcf->error_pages) { + if (r->uri_changes && clcf->error_pages) { err_page = clcf->error_pages->elts;