]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: http-rules: Support extra headers for HTTP return actions
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 31 Jan 2020 16:36:01 +0000 (17:36 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 6 Feb 2020 14:13:03 +0000 (15:13 +0100)
commit4a2c1427795bff6568a1561bc094dc7aec3681fa
tree76458bcbc3612a61428791b0e0549499398bace2
parent24231ab61f8a21a5a087989fe25f68df43ea25c7
MEDIUM: http-rules: Support extra headers for HTTP return actions

It is now possible to append extra headers to the generated responses by HTTP
return actions, while it is not based on an errorfile. For return actions based
on errorfiles, these extra headers are ignored. To define an extra header, a
"hdr" argument must be used with a name and a value. The value is a log-format
string. For instance:

  http-request status 200 hdr "x-src" "%[src]" hdr "x-dst" "%[dst]"
doc/configuration.txt
include/types/action.h
src/http_act.c