]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: http-ana: Set method to HTTP_METH_OTHER when an HTTP txn is created
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 22 Jun 2022 15:12:05 +0000 (17:12 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 22 Jun 2022 15:50:54 +0000 (17:50 +0200)
commit5eb67f5d7400fce75cf429d09af31464ed0eabfc
tree7444078c5e29f86cce28c179c9df074bd400a7ae
parent77ac6f5667fd83b6790fef626b8ff77d985afba5
BUG/MINOR: http-ana: Set method to HTTP_METH_OTHER when an HTTP txn is created

This patch is required to fix "method" sample fetch. But it make sense to
initialize the method of an HTTP transaction to HTTP_METH_OTHER. This way,
before the request parsing, the method is considered as unknown except if we
are able to retrieve the request start-line. It is especially important for
TCP streams.

About the "method" sample fetch, this patch is a way to be sure no random
method is returned when the sample fetch is used on a TCP stream before any
HTTP parsing.

This patch must be backported as far as 2.0.
src/http_ana.c