]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: h1: Add EOH marker during headers parsing
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 25 Sep 2018 11:59:46 +0000 (13:59 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 12 Oct 2018 14:08:27 +0000 (16:08 +0200)
commitff08a92797e4568039408aac2c0e1c3e5fa38738
tree6bb62cbf705ff3df994bca90bd10bc2eaf350006
parent315b39c3914f4c2301ce19a93564566caa2ede50
MINOR: h1: Add EOH marker during headers parsing

When headers parsing ends, a pseudo header with an empty name and an empty value
is added to the array of parsed headers to mark its end. It is convenient to
loop on this array, but not really useful if we want remove the last header or
add a new one, because we don't really know where is the last CRLF (the empty
line ending the headers block). So now, instead the name of this pseudo header
points on this last CRLF. Its length is still 0 and its value is still empty, so
loops on the array remains unchanged.
src/h1.c