]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: http-htx/proxy: Use a global and centralized storage for HTTP error messages
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 15 Jan 2020 14:19:50 +0000 (15:19 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 20 Jan 2020 14:18:46 +0000 (15:18 +0100)
commit5885775de17b47d34b98ffa00adde6dc6e0b3ec8
tree9971554802168d3c70372cef9645f33e300135aa
parentac2412fee8fd561885a9bb6a91ab2ae1f1b948c9
MEDIUM: http-htx/proxy: Use a global and centralized storage for HTTP error messages

All custom HTTP errors are now stored in a global tree. Proxies use a references
on these messages. The key used for errorfile directives is the file name as
specified in the configuration. For errorloc directives, a key is created using
the redirect code and the url. This means that the same custom error message is
now stored only once. It may be used in several proxies or for several status
code, it is only parsed and stored once.
include/proto/http_htx.h
include/types/http_htx.h
include/types/proxy.h
src/cfgparse-listen.c
src/haproxy.c
src/http_ana.c
src/http_htx.c