mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
API CHANGE: response status is now set on processResponseHeaders
That change was needed to move the variable attribution to earliest as possible. We also have a new field for HTTP_PROTOCOL version used on the response.
This commit is contained in:
@@ -66,9 +66,9 @@ void process_request (void *ptr)
|
||||
msc_process_request_headers(transaction);
|
||||
msc_process_request_body(transaction);
|
||||
msc_add_response_header(transaction, "Content-type", "text/html");
|
||||
msc_process_response_headers(transaction);
|
||||
msc_process_response_headers(transaction, 200, "HTTP 1.0");
|
||||
msc_process_response_body(transaction);
|
||||
msc_process_logging(transaction, 200);
|
||||
msc_process_logging(transaction);
|
||||
msc_transaction_cleanup(transaction);
|
||||
tv.tv_sec = 0;
|
||||
tv.tv_usec = 1000;
|
||||
|
@@ -63,9 +63,9 @@ int main (int argc, char **argv)
|
||||
"GET", "1.1");
|
||||
msc_process_request_headers(transaction);
|
||||
msc_process_request_body(transaction);
|
||||
msc_process_response_headers(transaction);
|
||||
msc_process_response_headers(transaction, 200, "HTTP 1.3");
|
||||
msc_process_response_body(transaction);
|
||||
msc_process_logging(transaction, 200);
|
||||
msc_process_logging(transaction);
|
||||
end:
|
||||
msc_rules_cleanup(rules);
|
||||
msc_cleanup(modsec);
|
||||
|
Reference in New Issue
Block a user