mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-15 21:59:41 -04:00
BUG/MINOR: http: fix misleading error message for response captures
Kay Fuchs reported that the error message is misleading in response captures because it suggests that "len" is accepted while it's not. This needs to be backported to 1.6.
This commit is contained in:
parent
16aa0153b5
commit
29bdb1c7ff
1 changed files with 2 additions and 2 deletions
|
|
@ -12519,7 +12519,7 @@ enum act_parse_ret parse_http_res_capture(const char **args, int *orig_arg, stru
|
|||
break;
|
||||
|
||||
if (cur_arg < *orig_arg + 3) {
|
||||
memprintf(err, "expects <expression> [ 'len' <length> | id <idx> ]");
|
||||
memprintf(err, "expects <expression> id <idx>");
|
||||
return ACT_RET_PRS_ERR;
|
||||
}
|
||||
|
||||
|
|
@ -12537,7 +12537,7 @@ enum act_parse_ret parse_http_res_capture(const char **args, int *orig_arg, stru
|
|||
}
|
||||
|
||||
if (!args[cur_arg] || !*args[cur_arg]) {
|
||||
memprintf(err, "expects 'len or 'id'");
|
||||
memprintf(err, "expects 'id'");
|
||||
free(expr);
|
||||
return ACT_RET_PRS_ERR;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue