]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: http-ana: Add support for "set-cookie-fmt" option to redirect rules
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 18 Nov 2024 17:03:23 +0000 (18:03 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 19 Nov 2024 14:20:02 +0000 (15:20 +0100)
commit1be7140adefb855bc65722632e9d1d4fa7a90373
tree5438bc9e27280e98fff6faef16bd2ff4d888836f
parentb2877db47c6a4c8637ac3ccefd4d16c3a38d1985
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.
doc/configuration.txt
include/haproxy/http_ana-t.h
include/haproxy/proxy-t.h
src/http_ana.c
src/http_rules.c