]> git.kaiwu.me - haproxy.git/commit
REGTESTS: http-messaging: test the options dropping the HTTP trailers
authorWilly Tarreau <w@1wt.eu>
Tue, 22 Sep 2026 04:24:33 +0000 (04:24 +0000)
committerWilly Tarreau <w@1wt.eu>
Wed, 30 Sep 2026 15:25:37 +0000 (17:25 +0200)
commit777f56ae933c8b71e6293e21d94ded4623abb504
tree86bb143a68e4b3e30a60393222c75151252de61b
parentdcb21ac28af24b8b88fe08320bc58cfe94b5816d
REGTESTS: http-messaging: test the options dropping the HTTP trailers

"option http-drop-request-trailers" and
"option http-drop-response-trailers" had no coverage.

vtest can send HTTP/1 trailers but cannot parse them, so neither end of
the chain may be a vtest HTTP peer when the trailers are expected to be
forwarded: the request side origin is a small haproxy instance, and the
client of the forwarded response side only reads the headers and then
the exact number of remaining bytes.

What actually leaves the proxy is observed at the byte level by two
extra haproxy instances running in TCP mode, one on each side, which
report through their log whether the trailer field name appears in what
they relayed. This gives a positive assertion for both the dropped and
the forwarded case, and the "no option" form is covered as well.
reg-tests/http-messaging/drop_trailers.vtc [new file with mode: 0644]