MINOR: h1: Add H1_MF_XFER_LEN flag

This flag is usefull to handle cases where there is no body, regardless of CL or
TE headers (for instance, responses to HEAD requests). It will not be set by the
parser itself.
This commit is contained in:
Christopher Faulet 2018-09-14 11:15:52 +02:00 committed by Willy Tarreau
parent 874a35cb55
commit c4e53f4ad7

View File

@ -144,6 +144,7 @@ enum h1m_state {
#define H1_MF_CONN_CLO 0x00000020 // message contains "connection: close"
#define H1_MF_CONN_KAL 0x00000040 // message contains "connection: keep-alive"
#define H1_MF_CONN_UPG 0x00000080 // message contains "connection: upgrade"
#define H1_MF_XFER_LEN 0x00000100 // message xfer size can be determined
/* Note: for a connection to be persistent, we need this for the request :
* - one of CLEN or CHNK