2
0
Fork 0

added header conditional check for normal config parser

personal/stbuehler/wip
Thomas Porzelt 2008-08-13 20:08:25 +02:00
commit 99a7b35e44
1 changed files with 7 additions and 0 deletions

View File

@ -531,6 +531,13 @@
lvalue = condition_lvalue_new(COMP_REQUEST_METHOD, NULL);
else if (g_str_equal(str, "scheme"))
lvalue = condition_lvalue_new(COMP_REQUEST_SCHEME, NULL);
else if (g_str_equal(str, "header")) {
if (k == NULL) {
log_warning(srv, NULL, "header conditional needs a key", "");
return FALSE;
}
lvalue = condition_lvalue_new(COMP_REQUEST_HEADER, k->value.opt_string);
}
else {
log_warning(srv, NULL, "unkown lvalue for condition: %s", n->value.opt_string->str);
return FALSE;