mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-02-27 04:01:45 +01:00
MINOR: sample: accept fetch keywords without parenthesis
fetch keywords which support arguments do not support being called without parenthesis even if all arguments are optional. Let's fix this to allow fetch keywords without parenthesis as is already done in ACLs.
This commit is contained in:
parent
ad8f8e8ffb
commit
f22a50836d
@ -354,7 +354,7 @@ struct sample_expr *sample_parse_expr(char **str, int *idx, char *err, int err_s
|
||||
goto out_error;
|
||||
}
|
||||
}
|
||||
else if (fetch->arg_mask) {
|
||||
else if (ARGM(fetch->arg_mask)) {
|
||||
p = my_strndup(str[*idx], endw - str[*idx]);
|
||||
if (p) {
|
||||
snprintf(err, err_size, "missing args for fetch method '%s'.", p);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user