Skip to content

Commit 840aaac

Browse files
committed
cleanup request on pool to allow using data when creating log
1 parent 873bfc7 commit 840aaac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ngx_http_redirectionio_module.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ static ngx_int_t ngx_http_redirectionio_postconfiguration(ngx_conf_t *cf) {
175175
static ngx_int_t ngx_http_redirectionio_create_ctx_handler(ngx_http_request_t *r) {
176176
ngx_http_redirectionio_ctx_t *ctx;
177177
ngx_http_redirectionio_conf_t *conf;
178-
ngx_http_cleanup_t *cln;
178+
ngx_pool_cleanup_t *cln;
179179

180180
// Disallow in sub request
181181
if (r != r->main) {
@@ -226,7 +226,7 @@ static ngx_int_t ngx_http_redirectionio_create_ctx_handler(ngx_http_request_t *r
226226
return NGX_DECLINED;
227227
}
228228

229-
cln = ngx_http_cleanup_add(r, 0);
229+
cln = ngx_pool_cleanup_add(r->pool, 0);
230230

231231
if (cln == NULL) {
232232
return NGX_DECLINED;

0 commit comments

Comments
 (0)