BUG/MINOR: checks: Compute the right HTTP request length for HTTP health checks
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 20 May 2020 14:15:02 +0000 (16:15 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 20 May 2020 14:27:28 +0000 (16:27 +0200)
commitf6f9ae40f60dd6de41809db19c28fab8afc9995e
treee40b93f3cb87550a258d931a6e253b49cee81b6b
parentf1dc6a462c30355f4d886d9c5e3af48477177e63
BUG/MINOR: checks: Compute the right HTTP request length for HTTP health checks

A bug was introduced by the commit 104d66a ("MINOR: checks: Add a way to send
custom headers and payload during http chekcs"). When the method and the uri are
configured for an HTTP health check, but not the version, the request length is
not properly computed. One byte is missing (the space between the method and the
uri).

This patch should fix the issue #641. 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