]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: http_htx: Support empty errorfiles
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 22 Jul 2019 14:49:30 +0000 (16:49 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 23 Jul 2019 12:58:32 +0000 (14:58 +0200)
commit90cc4811beec126c8057e3ea81899d1313090dfe
treebf27841801cd0c2694a5a0efd83a48f80a2ee3f7
parent9f5839cde27b353446f77c96c5de8068a6228a2a
BUG/MINOR: http_htx: Support empty errorfiles

Empty error files may be used to disable the sending of any message for specific
error codes. A common use-case is to use the file "/dev/null". This way the
default error message is overridden and no message is returned to the client. It
was supported in the legacy HTTP mode, but not in HTX. Because of a bug, such
messages triggered an error.

This patch must be backported to 2.0 and 1.9. However, the patch will have to be
adapted.
include/proto/http_htx.h
src/http_htx.c