Skip to content

Commit

Permalink
Updates the status variable bu logging phase
Browse files Browse the repository at this point in the history
  • Loading branch information
Felipe Zimmerle committed Aug 20, 2017
1 parent 97ebce6 commit 4e8854c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/mod_security3.c
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,7 @@ static int hook_log_transaction(request_rec *r)
return DECLINED;
}

msc_update_status_code(msr->t, r->status);
msc_process_logging(msr->t);
it = process_intervention(msr->t, r);
if (it != N_INTERVENTION_STATUS)
Expand Down
2 changes: 1 addition & 1 deletion src/msc_filters.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ apr_status_t output_filter(ap_filter_t *f, apr_bucket_brigade *bb_in)
msc_add_response_header(msr->t, key, val);
}

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

it = process_intervention(msr->t, r);
if (it != N_INTERVENTION_STATUS)
Expand Down

0 comments on commit 4e8854c

Please sign in to comment.