BUG/MINOR: checks: Remove a warning about http health checks
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 20 May 2020 14:30:32 +0000 (16:30 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 20 May 2020 14:34:54 +0000 (16:34 +0200)
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.

src/cfgparse-listen.c

index dccb79b..5a37d12 100644 (file)
@@ -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) {