]> git.kaiwu.me - haproxy.git/commit
MINOR: http-ana: Properly set message flags from the start-line flags
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 20 Nov 2020 13:22:37 +0000 (14:22 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 4 Dec 2020 13:41:49 +0000 (14:41 +0100)
commit2a408542445f23a6afc4eb8953ab2dac1e6a2134
tree0e26268ad46a3f548d57825de439a7dc095ab98b
parent6ade861305e8fff60cb26ef3b254dc4cf2a8b542
MINOR: http-ana: Properly set message flags from the start-line flags

CNT_LEN and TE_CHNK flags must be set on the message only when the
corresponding flag is set on the HTX start-line. Before, when the transfer
length was known XFER_LEN set), the HTTP_MSGF_TE_CHNK was the default. But
it is not appropriate. Now, it is only set if the message is chunked. Thus,
it is now possible to have a known transfer length without CNT_LEN or
TE_CHNK.

In addition, the BODYLESS flags may be set, independently on XFER_LEN one.
src/http_ana.c