Added support for JSON body processor

This commit is contained in:
Ulisses Albuquerque
2013-12-03 13:41:08 -08:00
committed by Felipe Zimmerle
parent 410aca9d78
commit c23097ce18
9 changed files with 421 additions and 7 deletions

View File

@@ -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) {