aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2009-09-10 16:34:09 +0000
committerIgor Sysoev <igor@sysoev.ru>2009-09-10 16:34:09 +0000
commit526f36aab838d5fb12c4e003b145f2340254dca1 (patch)
treebf6fff50e23f966c12722da2b76b14faaba5ca82
parent908194edddde7ca0d691a7ac402784c5fd74fa87 (diff)
downloadnginx-526f36aab838d5fb12c4e003b145f2340254dca1.tar.gz
nginx-526f36aab838d5fb12c4e003b145f2340254dca1.zip
fix request counter for rewrite or internal redirection cycle,
the bug was introduced in r3050
-rw-r--r--src/http/ngx_http_core_module.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c
index f99b91031..3abb0ed3f 100644
--- 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_http_request_t *r,
"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_request_t *r,
"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;
}