Skip to content

Commit 4e8854c

Browse files
author
Felipe Zimmerle
committed
Updates the status variable bu logging phase
1 parent 97ebce6 commit 4e8854c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/mod_security3.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,7 @@ static int hook_log_transaction(request_rec *r)
414414
return DECLINED;
415415
}
416416

417+
msc_update_status_code(msr->t, r->status);
417418
msc_process_logging(msr->t);
418419
it = process_intervention(msr->t, r);
419420
if (it != N_INTERVENTION_STATUS)

src/msc_filters.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ apr_status_t output_filter(ap_filter_t *f, apr_bucket_brigade *bb_in)
108108
msc_add_response_header(msr->t, key, val);
109109
}
110110

111-
msc_process_response_headers(msr->t, 200, "HTTP 1.1");
111+
msc_process_response_headers(msr->t, r->status, "HTTP 1.1");
112112

113113
it = process_intervention(msr->t, r);
114114
if (it != N_INTERVENTION_STATUS)

0 commit comments

Comments
 (0)