[PATCH 2/2] BUG/MINOR: http-htx: Just warn if payload of an errorfile doesn't match...
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 6 Nov 2020 08:33:36 +0000 (09:33 +0100)
committerVincent Bernat <bernat@debian.org>
Wed, 11 Nov 2020 15:21:12 +0000 (15:21 +0000)
commit58e9927fcc7f89d25ebaee31682475dba5c0278e
treec89ae43b3083dc3d16e6b1fc8c3a238a4fe9e188
parent3ba8e2d612d0b15c0edd567bf892d6a1de5398d1
[PATCH 2/2] BUG/MINOR: http-htx: Just warn if payload of an errorfile doesn't match the C-L

During startup, when an errorfile is parsed, if its payload does not match the
announced content-length, an error is triggered. This change was introduced in
the 2.3, which is ok. But for a stable release it may be seen as a
regression. Thus, now a warning is emitted, instead of an error. And the
content-length header is updated with the real payload length.

This patch depends on 58f55acf4e ("MINOR: http-htx: Add understandable errors
for the errorfiles parsing"). Both must be backported as far as 2.0. This bug
only exists in the 2.2, 2.1 and 2.0. Thus, there is no upstream commit ID for
this patch.

Gbp-Pq: Name 0002-BUG-MINOR-http-htx-Just-warn-if-payload-of-an-errorf.patch
src/http_htx.c