]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: http: fetch "base" is not compatible with set-header
authorWilly Tarreau <w@1wt.eu>
Tue, 24 Jun 2014 15:27:02 +0000 (17:27 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 24 Jun 2014 15:27:02 +0000 (17:27 +0200)
commit3caf2afabe89fb0ef0886cd1d8ea99ef21ec3491
tree208de999d8bb88ce6797a7e0bb00717543060c4a
parent92df370621b6e1286ef273310ad47371456a5cf0
BUG/MEDIUM: http: fetch "base" is not compatible with set-header

The sample fetch function "base" makes use of the trash which is also
used by set-header/add-header etc... everything which builds a formated
line. So we end up with some junk in the header if base is in use. Let's
fix this as all other fetches by using a trash chunk instead.

This bug was reported by Baptiste Assmann, and also affects 1.5.
src/proto_http.c