From 68c995ca988cd5d08c5af6f608c3d99b7a24e46e Mon Sep 17 00:00:00 2001 From: martinhsv <55407942+martinhsv@users.noreply.github.com> Date: Thu, 24 Oct 2019 13:19:48 -0700 Subject: [PATCH] Fix: audit log part for response body for JSON format to be E --- CHANGES | 2 ++ src/transaction.cc | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index 58cf75cb..c5c6b09b 100644 --- a/CHANGES +++ b/CHANGES @@ -1,6 +1,8 @@ v3.0.4 - YYYY-MMM-DD (to be released) ------------------------------------- + - Fix: audit log part for response body for JSON format to be E + [Issue #2066 - @martinhsv, @zimmerle] - Make sure m_rulesMessages is filled after successfull match [Issue #2000, #2048 - @victorhora, @defanator] - Fix @pm lookup for possible matches on offset zero. diff --git a/src/transaction.cc b/src/transaction.cc index e2d5190c..a237496c 100644 --- a/src/transaction.cc +++ b/src/transaction.cc @@ -1593,7 +1593,7 @@ std::string Transaction::toJSON(int parts) { strlen("response")); yajl_gen_map_open(g); - if (parts & audit_log::AuditLog::GAuditLogPart) { + if (parts & audit_log::AuditLog::EAuditLogPart) { LOGFY_ADD("body", this->m_responseBody.str().c_str()); } LOGFY_ADD_NUM("http_code", m_httpCodeReturned);