fix request counter for rewrite or internal redirection cycle,
the bug was introduced in r3050
This commit is contained in:
parent
fc3b7088f8
commit
a40b803413
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 "
|
"rewrite or internal redirection cycle "
|
||||||
"while processing \"%V\"", &r->uri);
|
"while processing \"%V\"", &r->uri);
|
||||||
|
|
||||||
|
r->main->count++;
|
||||||
ngx_http_finalize_request(r, NGX_HTTP_INTERNAL_SERVER_ERROR);
|
ngx_http_finalize_request(r, NGX_HTTP_INTERNAL_SERVER_ERROR);
|
||||||
return NGX_OK;
|
return NGX_OK;
|
||||||
}
|
}
|
||||||
|
@ -2172,6 +2173,7 @@ ngx_http_internal_redirect(ngx_http_request_t *r,
|
||||||
"rewrite or internal redirection cycle "
|
"rewrite or internal redirection cycle "
|
||||||
"while internal redirect to \"%V\"", uri);
|
"while internal redirect to \"%V\"", uri);
|
||||||
|
|
||||||
|
r->main->count++;
|
||||||
ngx_http_finalize_request(r, NGX_HTTP_INTERNAL_SERVER_ERROR);
|
ngx_http_finalize_request(r, NGX_HTTP_INTERNAL_SERVER_ERROR);
|
||||||
return NGX_DONE;
|
return NGX_DONE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue