]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: h1: remove the useless H1_MSG_BODY state
authorWilly Tarreau <w@1wt.eu>
Wed, 12 Sep 2018 15:25:32 +0000 (17:25 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 12 Sep 2018 15:38:25 +0000 (17:38 +0200)
commit001823c3047676130d4e9d8825f3669359741479
tree5cc3bd6f777e4af4f17c7d2a5810246d925d923d
parent4c34c0e74a4727ef1c45224b822b093fedb50ee1
MEDIUM: h1: remove the useless H1_MSG_BODY state

This state was only a delimiter between headers and body but it now
causes more harm than good because it requires someone to change it.
Since the H1 parser knows if we're in DATA or CHUNK_SIZE, simply let
it set the right next state so that h1m->state constantly matches
what is expected afterwards.
include/proto/h1.h
include/types/h1.h
src/h1.c
src/mux_h2.c