]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: sample: converter: Add add_item convertor
authorNikola Sale <nikola.sale94@gmail.com>
Sun, 3 Apr 2022 16:11:53 +0000 (18:11 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 4 Apr 2022 05:30:58 +0000 (07:30 +0200)
commit0dbf03871f5c3acb7b72bba05060c401889018c3
tree53b22395150060147183e2082c4e8fc95a77bcfd
parent34107800ddebc85e8cf6a1611251752f04cac8c1
MINOR: sample: converter: Add add_item convertor

This new converter is similar to the concat converter and can be used to
build new variables made of a succession of other variables but the main
difference is that it does the checks if adding a delimiter makes sense as
wouldn't be the case if e.g the current input sample is empty. That
situation would require 2 separate rules using concat converter where the
first rule would have to check if the current sample string is empty before
adding a delimiter. This resolves GitHub Issue #1621.
doc/configuration.txt
reg-tests/converter/add_item.vtc [new file with mode: 0644]
src/sample.c