mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Added support for JSON body processor
This commit is contained in:
committed by
Felipe Zimmerle
parent
410aca9d78
commit
c23097ce18
@@ -19,6 +19,7 @@
|
||||
#include "modsecurity.h"
|
||||
#include "msc_parsers.h"
|
||||
#include "msc_util.h"
|
||||
#include "msc_json.h"
|
||||
#include "msc_xml.h"
|
||||
#include "apr_version.h"
|
||||
|
||||
@@ -255,6 +256,9 @@ static apr_status_t modsecurity_tx_cleanup(void *data) {
|
||||
/* XML processor cleanup. */
|
||||
if (msr->xml != NULL) xml_cleanup(msr);
|
||||
|
||||
/* JSON processor cleanup. */
|
||||
if (msr->json != NULL) json_cleanup(msr);
|
||||
|
||||
// TODO: Why do we ignore return code here?
|
||||
modsecurity_request_body_clear(msr, &my_error_msg);
|
||||
if (my_error_msg != NULL) {
|
||||
|
Reference in New Issue
Block a user