MINOR: http-ana: Add a HTTP_MSGF flag to state the Expect header was checked
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 5 Apr 2023 08:33:31 +0000 (10:33 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 5 Apr 2023 08:33:32 +0000 (10:33 +0200)
commitffcffa8e93bcbf376f13b1f6e568ab093ea068bf
treeabfb7af12a846b00e0cfda8e3eb68ae2e0f3b7f5
parent620382af2f21a77d493691eca84eceab0d9f9c0e
MINOR: http-ana: Add a HTTP_MSGF flag to state the Expect header was checked

HTTP_MSGF_EXPECT_CHECKED is now set on the request message to know the
"Expect: " header was already handled, if any. The flag is set from the
moment we try to handle the header to send a "100-continue" response,
whether it was found or not.

This way, when we are waiting for the request payload, thanks to this flag,
we only try to handle "Expect: " header only once. Before it was performed
by changing the message state from BODY to DATA. But this has some side
effects and it is no accurate. So, it is better to rely on a flag to do so.
include/haproxy/http_ana-t.h
src/http_ana.c