mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Adds protocol and http version to processUri method's signature
Protocol and http version will be further used to fill some variables and the audit log.
This commit is contained in:
@@ -141,6 +141,12 @@ RegressionTest *RegressionTest::from_yajl_node(const yajl_val &node) {
|
||||
if (strcmp(key2, "uri") == 0) {
|
||||
u->uri = YAJL_GET_STRING(val2);
|
||||
}
|
||||
if (strcmp(key2, "protocol") == 0) {
|
||||
u->protocol = YAJL_GET_STRING(val2);
|
||||
}
|
||||
if (strcmp(key2, "http_version") == 0) {
|
||||
u->httpVersion = YAJL_GET_NUMBER(val2);
|
||||
}
|
||||
if (strcmp(key2, "headers") == 0) {
|
||||
u->request_headers = yajl_array_to_map(val2);
|
||||
}
|
||||
|
Reference in New Issue
Block a user