From 23415f0df5dcf0263ab51d6d4b0ae433bace0aa1 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 2cdecb2a1..6b1bf9642 100644 --- a/images/router/haproxy/conf/haproxy-config.template +++ b/images/router/haproxy/conf/haproxy-config.template @@ -129,7 +129,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