mirror of
https://github.com/nginx/nginx.git
synced 2025-01-19 01:42:58 +08: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
@ -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…
Reference in New Issue
Block a user