Merge b2fa083522c70368c7ab911696dcb87dde5dc688 into f3f00e348b65e94c033960513950d7fc375b10df

This commit is contained in:
TomasKorbar 2025-09-11 00:14:47 +08:00 committed by GitHub
commit 9328dfd6ea
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 */ /* Set the status line explicitly for the error document */
f->r->status_line = ap_get_status_line(status); 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); brigade = apr_brigade_create(f->r->pool, f->r->connection->bucket_alloc);
if (brigade == NULL) return APR_EGENERAL; if (brigade == NULL) return APR_EGENERAL;