summaryrefslogtreecommitdiff
path: root/src/http/modules/perl
diff options
context:
space:
mode:
Diffstat (limited to 'src/http/modules/perl')
-rw-r--r--src/http/modules/perl/nginx.pm2
-rw-r--r--src/http/modules/perl/ngx_http_perl_module.c8
2 files changed, 6 insertions, 4 deletions
diff --git a/src/http/modules/perl/nginx.pm b/src/http/modules/perl/nginx.pm
index 4b5325361..b6a68d413 100644
--- a/src/http/modules/perl/nginx.pm
+++ b/src/http/modules/perl/nginx.pm
@@ -47,7 +47,7 @@ our @EXPORT = qw(
HTTP_INSUFFICIENT_STORAGE
);
-our $VERSION = '0.8.13';
+our $VERSION = '0.8.14';
require XSLoader;
XSLoader::load('nginx', $VERSION);
diff --git a/src/http/modules/perl/ngx_http_perl_module.c b/src/http/modules/perl/ngx_http_perl_module.c
index c4f52a58f..34ecc9a33 100644
--- a/src/http/modules/perl/ngx_http_perl_module.c
+++ b/src/http/modules/perl/ngx_http_perl_module.c
@@ -179,6 +179,8 @@ ngx_http_perl_handler(ngx_http_request_t *r)
return NGX_HTTP_NOT_FOUND;
}
+ r->main->count++;
+
ngx_http_perl_handle_request(r);
return NGX_DONE;
@@ -232,6 +234,9 @@ ngx_http_perl_handle_request(ngx_http_request_t *r)
}
+ ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
+ "perl handler done: %i", rc);
+
if (rc == NGX_DONE) {
return;
}
@@ -240,9 +245,6 @@ ngx_http_perl_handle_request(ngx_http_request_t *r)
rc = NGX_OK;
}
- ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
- "perl handler done: %i", rc);
-
if (ctx->redirect_uri.len) {
uri = ctx->redirect_uri;
args = ctx->redirect_args;