]> git.kaiwu.me - haproxy.git/commit
MINOR: h1-htx: Reports non-HTTP version via dedicated flags
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 25 Feb 2026 14:37:30 +0000 (15:37 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 5 Mar 2026 14:34:46 +0000 (15:34 +0100)
commit88765b69e0f6b80b9330f65955d62d884d3e6388
treed641359b79d57d573752e7e0d95544eb1c5e6fe2
parent9951f9cf85b4642071fe79ab90634d876337ee52
MINOR: h1-htx: Reports non-HTTP version via dedicated flags

Now, when the HTTP version format is not strictly valid, flags are set on
the h1 parser and the HTX start-line. H1_MF_NOT_HTTP is set on the H1 parser
and HTX_SL_F_NOT_HTTP is set on the HTX start-line. These flags were
introduced to avoid parsing again and again the version to know if it is a
valid version or not, escpecially because it is most of time valid.
include/haproxy/h1.h
include/haproxy/htx-t.h
src/h1_htx.c