Mercurial > hg > nginx
changeset 3111:4a2d3f571de6
fix request counter handling in perl module for $r->internal_redirect()
and $r->has_request_body(), the bug was introduced in r3050
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 08 Sep 2009 11:33:32 +0000 |
parents | c09bf4a53b79 |
children | 5ddc9458e4bb |
files | src/http/modules/perl/ngx_http_perl_module.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/modules/perl/ngx_http_perl_module.c +++ b/src/http/modules/perl/ngx_http_perl_module.c @@ -238,6 +238,7 @@ ngx_http_perl_handle_request(ngx_http_re "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_re 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; }