Mercurial > hg > nginx-quic
changeset 3114:1c4fcfe57af1
fix request counter for rewrite or internal redirection cycle,
the bug was introduced in r3050
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 10 Sep 2009 16:34:09 +0000 |
parents | e1e290965ed1 |
children | 204ea173234f |
files | src/http/ngx_http_core_module.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/ngx_http_core_module.c +++ b/src/http/ngx_http_core_module.c @@ -994,6 +994,7 @@ ngx_http_core_post_rewrite_phase(ngx_htt "rewrite or internal redirection cycle " "while processing \"%V\"", &r->uri); + r->main->count++; ngx_http_finalize_request(r, NGX_HTTP_INTERNAL_SERVER_ERROR); return NGX_OK; } @@ -2172,6 +2173,7 @@ ngx_http_internal_redirect(ngx_http_requ "rewrite or internal redirection cycle " "while internal redirect to \"%V\"", uri); + r->main->count++; ngx_http_finalize_request(r, NGX_HTTP_INTERNAL_SERVER_ERROR); return NGX_DONE; }