From 0beae17b4f969f38a3501413b5327417fd1b452b Mon Sep 17 00:00:00 2001 From: Felipe Zimmerle Date: Fri, 3 Jul 2015 14:59:02 -0300 Subject: [PATCH] Adds 'http_returned_code' property to Assay class To be used by the auditlogs --- headers/modsecurity/assay.h | 2 ++ src/assay.cc | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/headers/modsecurity/assay.h b/headers/modsecurity/assay.h index 627b74d8..488f0120 100644 --- a/headers/modsecurity/assay.h +++ b/headers/modsecurity/assay.h @@ -130,6 +130,8 @@ class Assay { bool save_in_auditlog; bool do_not_save_in_auditlog; + int http_code_returned; + private: std::ofstream myfile; Rules *m_rules; diff --git a/src/assay.cc b/src/assay.cc index 9bda31e3..0ad49e88 100644 --- a/src/assay.cc +++ b/src/assay.cc @@ -77,7 +77,8 @@ Assay::Assay(ModSecurity *ms, Rules *rules) m_uri(NULL), m_rules(rules), save_in_auditlog(false), - do_not_save_in_auditlog(false) { + do_not_save_in_auditlog(false), + http_code_returned(200) { m_rules->incrementReferenceCount(); this->debug(4, "Initialising transaction"); }