From: Christopher Faulet Date: Wed, 20 May 2020 14:30:32 +0000 (+0200) Subject: BUG/MINOR: checks: Remove a warning about http health checks X-Git-Tag: v2.1.5~34 X-Git-Url: http://git.haproxy.org/?a=commitdiff_plain;h=1ef78e67d24043ca6f7620fc5a7f87b2fef28dab;p=haproxy-2.1.git BUG/MINOR: checks: Remove a warning about http health checks A warning message was backported with the commit 104d66a ("MINOR: checks: Add a way to send custom headers and payload during http chekcs"). We try to avoid to backport such warning in stable versions. Thus, the warning is removed. The patch was directly introduced on 2.1, there is no upstream commit ID for this patch. It must be backported everywhere the abobe commit is. --- diff --git a/src/cfgparse-listen.c b/src/cfgparse-listen.c index dccb79b..5a37d12 100644 --- a/src/cfgparse-listen.c +++ b/src/cfgparse-listen.c @@ -2308,13 +2308,6 @@ stats_error_parsing: char *hdrs = strstr(vsn, "\r\n"); char *body = strstr(vsn, "\r\n\r\n"); - if (hdrs || body) { - ha_warning("parsing [%s:%d]: '%s %s' : hiding headers or body at the end of the version string is deprecated." - " Please, consider to use 'http-check send' directive instead.\n", - file, linenum, args[0], args[1]); - err_code |= ERR_WARN; - } - if (hdrs == body) hdrs = NULL; if (hdrs) {