From fd3bd8ac229cb302737d77287ed40513b20b3011 Mon Sep 17 00:00:00 2001 From: Jonathan Berrewaerts Date: Wed, 18 Mar 2026 15:56:06 +0100 Subject: [PATCH] Allow processing of ErrorDocument --- apache2/apache2_util.c | 1 + 1 file changed, 1 insertion(+) diff --git a/apache2/apache2_util.c b/apache2/apache2_util.c index e13c64b90..32d499677 100644 --- a/apache2/apache2_util.c +++ b/apache2/apache2_util.c @@ -32,6 +32,7 @@ apr_status_t send_error_bucket(modsec_rec *msr, ap_filter_t *f, int status) { /* Set the status line explicitly for the error document */ f->r->status_line = ap_get_status_line(status); + f->r->status = 200; brigade = apr_brigade_create(f->r->pool, f->r->connection->bucket_alloc); if (brigade == NULL) return APR_EGENERAL;