mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-13 13:26:01 +03:00
Merge b2fa083522c70368c7ab911696dcb87dde5dc688 into 18cae5003a7160792a2e96000a9d6bd07cdf7ee2
This commit is contained in:
commit
a077cf6e91
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user