From: Willy Tarreau Date: Fri, 24 Jun 2016 13:36:34 +0000 (+0200) Subject: BUG/MINOR: http: fix misleading error message for response captures X-Git-Tag: v1.7-dev4~52 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=29bdb1c7ff77d2ec5113df208c5981797357264a;p=thirdparty%2Fhaproxy.git 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. --- diff --git a/src/proto_http.c b/src/proto_http.c index 4a6e6d34b6..bab3db5d8e 100644 --- a/src/proto_http.c +++ b/src/proto_http.c @@ -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 [ 'len' | id ]"); + memprintf(err, "expects id "); 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; }