BUG/MINOR: promex: Don't forget to consume the request on error
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 13 Jan 2023 07:53:23 +0000 (08:53 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 13 Jan 2023 08:45:23 +0000 (09:45 +0100)
commitc1b013bc61e165cd54fc3e4c538f95ba0c0104c6
treecf67604dd7b716358c76bae4e0d3b923a2574bda
parent03926129b02fc62917850116f04a876bd0189e41
BUG/MINOR: promex: Don't forget to consume the request on error

When the promex applet triggers an error, for instance because the URI is
invalid, we must still take care to consume the request. Otherwise, the
error will be handled by HTTP analyzers as a server abort.

This patch must be backported as far as 2.0.
addons/promex/service-prometheus.c