]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: http-ana: Save the message version in the http_msg structure
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 25 Feb 2026 15:10:28 +0000 (16:10 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 5 Mar 2026 14:34:46 +0000 (15:34 +0100)
commit7bfb66d2b1a361db824cf4e809a094f09d166acc
treec13bcbc85554273d8f419579b896ad97f988ed13
parent7a474855b4e676e8f37ee7365606e93cff9b9933
MINOR: http-ana: Save the message version in the http_msg structure

When the request or the response is received, the numerical value of the
message version is now saved. To do so, the field "vsn" was added in the
http_msg structure. It is an unsigned char. The 4 MSB bits are used for the
major digit and the 4 LSB bits for the minor one.

Of couse, the version must be valid. the HTX_SL_F_NOT_HTTP flag of the
start-line is used to be sure the version is valid. But because this flag is
quite new, we also take care the string representation of the version is 8
bytes length. 0 means the version is not valid.
include/haproxy/http_ana-t.h
src/http_ana.c