Skip to content

Commit ed1d3d9

Browse files
committed
Fixed Action Drop not work
1 parent 972d9e2 commit ed1d3d9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

nginx/modsecurity/ngx_http_modsecurity.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -668,6 +668,9 @@ ngx_http_modsecurity_create_ctx(ngx_http_request_t *r)
668668
if (ctx->brigade == NULL) {
669669
return NULL;
670670
}
671+
672+
apr_table_setn(ctx->req->notes, NOTE_NGINX_REQUEST_CTX, (const char *) ctx);
673+
671674
return ctx;
672675
}
673676

0 commit comments

Comments
 (0)