]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: h1: don't consider the status for each header
authorWilly Tarreau <w@1wt.eu>
Thu, 13 Sep 2018 09:52:20 +0000 (11:52 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 13 Sep 2018 12:30:23 +0000 (14:30 +0200)
commitdb72da0432d1f032761c386a9b68cd2268dc4bf8
tree6d485684b8ca523768fae8d19fca331f6664a28b
parent253006deed4eacf6cc36811f430ab6ae7f6fc4dc
BUG/MINOR: h1: don't consider the status for each header

While it was possible to consider the status before parsing response
headers, it's wrong to do it for request headers and could lead to
random behaviours due to this status matching other fields instead.
Additionnally there is little to no value in doing this for each and
every new header field. It's much better to reset the content-length
at once in the callerwhen seeing such statuses (which currently is only
the H2 mux).

No backport is needed, this is purely 1.9.
src/h1.c
src/mux_h2.c