mirror of
https://github.com/nginx/nginx.git
synced 2026-06-26 20:01:45 +00:00
fix request counter for rewrite or internal redirection cycle,
the bug was introduced in r3050
This commit is contained in:
parent
908194eddd
commit
526f36aab8
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue