]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: proxy: Add options to drop HTTP trailers during message forwarding
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 15 Apr 2025 13:36:19 +0000 (15:36 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 22 Apr 2025 14:14:46 +0000 (16:14 +0200)
commit52002036777c3ce189146df93d38597ee20d5b42
tree15f4289171c693c326d2aa72c89c9abf5f768e46
parent044ef9b3d63a431e79f64aa9fcd161c0a008f5f2
MINOR: proxy: Add options to drop HTTP trailers during message forwarding

In RFC9110, it is stated that trailers could be merged with the
headers. While it should be performed with a speicial care, it may be a
problem for some applications. To avoid any trouble with such applications,
two new options were added to drop trailers during the message forwarding.

On the backend, "http-drop-request-trailers" option can be enabled to drop
trailers from the requests before sending them to the server. And on the
frontend, "http-drop-response-trailers" option can be enabled to drop
trailers from the responses before sending them to the client. The options
can be defined in defaults sections and disabled with "no" keyword.

This patch should fix the issue #2930.
doc/configuration.txt
include/haproxy/proxy-t.h
src/h1.c
src/h3.c
src/mux_h1.c
src/mux_h2.c
src/proxy.c