From: Christopher Faulet Date: Mon, 18 Nov 2024 17:03:23 +0000 (+0100) Subject: MINOR: http-ana: Add support for "set-cookie-fmt" option to redirect rules X-Git-Tag: v3.1-dev14~107 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1be7140adefb855bc65722632e9d1d4fa7a90373;p=thirdparty%2Fhaproxy.git MINOR: http-ana: Add support for "set-cookie-fmt" option to redirect rules It is now possible to use a log-format string to define the "Set-Cookie" header value of a response generated by a redirect rule. There is no special check on the result format and it is not possible during the configuration parsing. It is proably not a big deal because already existing "set-cookie" and "clear-cookie" options don't perform any check. Here is an example: http-request redirect location https://someurl.com/ set-cookie haproxy="%[var(txn.var)]" This patch should fix the issue #1784. --- diff --git a/doc/configuration.txt b/doc/configuration.txt index 9bd5d45aef..afe5edb385 100644 --- a/doc/configuration.txt +++ b/doc/configuration.txt @@ -11453,6 +11453,12 @@ redirect scheme [code ]