]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: http-fetch: Fix test on message state to capture the version
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 1 Apr 2021 14:00:29 +0000 (16:00 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 1 Apr 2021 14:45:40 +0000 (16:45 +0200)
commit09f88364b7c654980581d547aca696d44896c404
tree561766efa75f9c6b5b729e7227318468e6b6f0a3
parentd57d9fe3d81e0da0b1b846ff415d38fb4a831072
BUG/MINOR: http-fetch: Fix test on message state to capture the version

A bug was introduced when the legacy HTTP mode was removed. To capture the
HTTP version of the request or the response, we rely on the message state to
be sure the status line was received. However, the test is inverted. The
version can be captured if message headers were received, not the opposite.

This patch must be backported as far as 2.2.
src/http_fetch.c