mirror of
https://github.com/nginx/nginx.git
synced 2025-08-06 14:56:15 +08:00
fix request counter handling for perl handler, introduced in r3050
This commit is contained in:
parent
f0e12845a5
commit
7d71c80b16
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user