]> git.kaiwu.me - haproxy.git/commit
REGTESTS: http-messaging: test reject-unexpected-request-payload
authorWilly Tarreau <w@1wt.eu>
Wed, 25 Nov 2026 18:07:51 +0000 (18:07 +0000)
committerWilly Tarreau <w@1wt.eu>
Wed, 25 Nov 2026 18:31:08 +0000 (19:31 +0100)
commitc43479aa0fcdae7b16108a2e5525bd5396cb5571
treeb890e3be31ff2335987122e1eb22db0bfc95c746
parentde273dafd7d0f63e209ec9aa927658c49630be3c
REGTESTS: http-messaging: test reject-unexpected-request-payload

This adds the "reject-unexpected-request-payload" check to the HTTP/1
and H2 tests, in its own profile on its own bind line, and a GET with a
body and a chunked POST to the reference connection which has everything
off. A payload is accepted with POST, PUT and PATCH, an empty one with
GET, but a non-empty one gets a 400 or STREAM_ERROR with GET, HEAD,
DELETE, OPTIONS and TRACE, as does any chunked request.
reg-tests/http-messaging/http_hardening_h1.vtc
reg-tests/http-messaging/http_hardening_h2.vtc