mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 11:16:33 +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:
@@ -147,7 +147,7 @@ int main(int argc, char *argv[]) {
|
||||
modsecTransaction->addResponseHeader("Content-Length",
|
||||
"200");
|
||||
|
||||
modsecTransaction->processResponseHeaders();
|
||||
modsecTransaction->processResponseHeaders(200, "HTTP 1.2");
|
||||
|
||||
if (modsecTransaction->intervention(&it)) {
|
||||
std::cout << "There is an intervention" << std::endl;
|
||||
@@ -165,7 +165,7 @@ int main(int argc, char *argv[]) {
|
||||
}
|
||||
|
||||
next_request:
|
||||
modsecTransaction->processLogging(200);
|
||||
modsecTransaction->processLogging();
|
||||
delete modsecTransaction;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user