From eccf4a3669212ffe82e96f9f80ee29a0b427937a Mon Sep 17 00:00:00 2001 From: Miciah Masters Date: Mon, 5 Oct 2020 17:06:17 -0400 Subject: [PATCH] haproxy-config.template: Only enable HTX for HTTP/2 Enable HTX if HTTP/2 is enabled, and turn off HTX otherwise. Enabling HTX causes HAProxy to down-case HTTP header names, which breaks non-conformant legacy HTTP clients and servers. This commit fixes bug 1885414. https://bugzilla.redhat.com/show_bug.cgi?id=1885414 * images/router/haproxy/conf/haproxy-config.template: Turn off HTX if HTTP/2 is not enabled. --- images/router/haproxy/conf/haproxy-config.template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/images/router/haproxy/conf/haproxy-config.template b/images/router/haproxy/conf/haproxy-config.template index 947db56a3..9b8c4fd05 100644 --- a/images/router/haproxy/conf/haproxy-config.template +++ b/images/router/haproxy/conf/haproxy-config.template @@ -140,7 +140,7 @@ defaults compression type {{env "ROUTER_COMPRESSION_MIME" "text/html text/plain text/css"}} {{- end }} - option http-use-htx + {{ if isTrue $router_disable_http2 }}no {{ end }}option http-use-htx {{ if (gt .StatsPort -1) }} listen stats