]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: h1: Add H1_MF_XFER_LEN flag
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 14 Sep 2018 09:15:52 +0000 (11:15 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 14 Sep 2018 14:02:40 +0000 (16:02 +0200)
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.

include/types/h1.h

index ec967ac4a2c1e55c5eea8ff2e9b69783e919c6ec..2abf4723ca50b45cffff0fdbc3d29ad51049b40b 100644 (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