mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 05:45:59 +03:00
Adds 'http_returned_code' property to Assay class
To be used by the auditlogs
This commit is contained in:
parent
885fe14f30
commit
0beae17b4f
@ -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;
|
||||
|
@ -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");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user