mirror of
https://github.com/nginx/nginx.git
synced 2026-08-04 14:58:20 +00:00
fix request counter handling in perl module for $r->internal_redirect()
and $r->has_request_body(), the bug was introduced in r3050
This commit is contained in:
parent
9963b19f69
commit
4d4b2a1b40
1 changed files with 3 additions and 0 deletions
|
|
@ -238,6 +238,7 @@ ngx_http_perl_handle_request(ngx_http_request_t *r)
|
|||
"perl handler done: %i", rc);
|
||||
|
||||
if (rc == NGX_DONE) {
|
||||
ngx_http_finalize_request(r, rc);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -257,11 +258,13 @@ ngx_http_perl_handle_request(ngx_http_request_t *r)
|
|||
ctx->redirect_uri.len = 0;
|
||||
|
||||
if (ctx->done || ctx->next) {
|
||||
ngx_http_finalize_request(r, NGX_DONE);
|
||||
return;
|
||||
}
|
||||
|
||||
if (uri.len) {
|
||||
ngx_http_internal_redirect(r, &uri, &args);
|
||||
ngx_http_finalize_request(r, NGX_DONE);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue