]> git.ipfire.org Git - thirdparty/haproxy.git/commit
REGTEST: add a basic test for HTTP rules manipulating headers
authorWilly Tarreau <w@1wt.eu>
Fri, 7 Dec 2018 14:18:54 +0000 (15:18 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 7 Dec 2018 14:31:09 +0000 (15:31 +0100)
commit4d58ba79ddb94120f237a7f13af767b7b544def3
treecc7ba98f63e2541ccb548683693be7cb034ba844
parent6b6736b0fd48841e1f6bab4f654f7d6c21f70721
REGTEST: add a basic test for HTTP rules manipulating headers

There is always a risk of breaking HTTP processing when performing certain
code changes. This test modifies a request's start line, uses variables,
adds and modifies headers, interleaves them with the start-line changes,
and makes use of different header formats involving duplicated names,
duplicated values, empty fields and spaces around values. These operations
are performed both in the frontend and in the backend, for both the request
and the response. A CRC is computed on the concatenation of all the values,
and the concatenations are sent as individual header fields as well to help
debugging when the test fails.

The test reliably works since 1.6, implying that the HTTP processing did
not change. It currently fails on HTX.
reg-tests/http-rules/h00000.vtc [new file with mode: 0644]