]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[BUG] http: update the header list's tail when removing the last header
authorWilly Tarreau <w@1wt.eu>
Sat, 12 Feb 2011 12:07:35 +0000 (13:07 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 12 Feb 2011 12:07:35 +0000 (13:07 +0100)
commit5c4784f4b8f29da0301894cd0c2ee01cb983c375
treeb2fbe08970eb01fcb719ebe9cfe1fd46be8d1e0d
parent16171e234bc8e0ba2f1a0ce290b460f385a2fe42
[BUG] http: update the header list's tail when removing the last header

Stefan Behte reported a strange case where depending on the position of
the Connection header in the header list, some headers added after it
were or were not usable in "balance hdr()". The reason is that when the
last header is removed, the list's tail was not updated, so any header
added after that one was not visible from the list.

This fix must be backported to 1.4 and possibly 1.3.
src/proto_http.c