Merge b2fa083522c70368c7ab911696dcb87dde5dc688 into 18cae5003a7160792a2e96000a9d6bd07cdf7ee2

This commit is contained in:
TomasKorbar 2025-08-06 19:57:35 +02:00 committed by GitHub
commit a077cf6e91
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -33,6 +33,11 @@ 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);
/* Clear previously set response code to make clear that this is
* not a recursive error
*/
f->r->status = 200;
brigade = apr_brigade_create(f->r->pool, f->r->connection->bucket_alloc);
if (brigade == NULL) return APR_EGENERAL;