]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: h1: deduplicate the content-length header
authorWilly Tarreau <w@1wt.eu>
Fri, 14 Sep 2018 15:11:33 +0000 (17:11 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 14 Sep 2018 17:04:28 +0000 (19:04 +0200)
commit73373ab43a4599e8bcb209687e9ec1c7be37779a
tree9848f515cebeae28a4c154598b01f52125f0d10a
parent2557f6a3e24ade33f4a367d3ffc8762f4b9305db
MEDIUM: h1: deduplicate the content-length header

Just like we used to do in proto_http, we now check that each and every
occurrence of the content-length header field and each of its values are
exactly identical, and we normalize the header to return the last value
of the first header with spaces trimmed.
src/h1.c