[MINOR] http: create new MSG_BODY sub-states
authorWilly Tarreau <w@1wt.eu>
Sun, 8 Nov 2009 12:10:58 +0000 (13:10 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 8 Nov 2009 12:10:58 +0000 (13:10 +0100)
commit655dce90d46d3b440cbea5eb4efeca055be6068c
tree5eb54570b3d466ca7fc85339628e267bd886418b
parentda3b7c31f75ab80873278e766cc219257c52673c
[MINOR] http: create new MSG_BODY sub-states

An HTTP message can be decomposed into several sub-states depending
on the transfer-encoding. We'll have to keep these state information
while parsing chunks, so we must extend the values. In order not to
change everything, we'll now consider that anything >= MSG_BODY is
the body, and that the value indicates the precise state. The
MSG_ERROR status which was greater than MSG_BODY was moved for this.
include/types/proto_http.h
src/proto_http.c