From: Christopher Faulet Date: Tue, 6 Sep 2022 08:09:40 +0000 (+0200) Subject: BUG/MINOR: h1: Support headers case adjustment for TCP proxies X-Git-Tag: v2.7-dev6~103 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a9e934bbd189b7d85af454f03ec1ade692154fd5;p=thirdparty%2Fhaproxy.git BUG/MINOR: h1: Support headers case adjustment for TCP proxies On frontend side, "h1-case-adjust-bogus-client" option is now supported in TCP mode. It is important to be able to adjust the case of response headers when a connection is routed to an HTTP backend. In this case, the client connection is upgraded to H1. On backend side, "h1-case-adjust-bogus-server" option is now also supported in TCP mode to be able to perform HTTP health-checks with a case adjustment of the request headers. This patch should be backported as far as 2.0. --- diff --git a/src/proxy.c b/src/proxy.c index 7a2d400567..6fad8ee91b 100644 --- a/src/proxy.c +++ b/src/proxy.c @@ -122,8 +122,8 @@ const struct cfg_opt cfg_opts2[] = { "http-pretend-keepalive", PR_O2_FAKE_KA, PR_CAP_BE, 0, PR_MODE_HTTP }, { "http-no-delay", PR_O2_NODELAY, PR_CAP_FE|PR_CAP_BE, 0, PR_MODE_HTTP }, - {"h1-case-adjust-bogus-client", PR_O2_H1_ADJ_BUGCLI, PR_CAP_FE, 0, PR_MODE_HTTP }, - {"h1-case-adjust-bogus-server", PR_O2_H1_ADJ_BUGSRV, PR_CAP_BE, 0, PR_MODE_HTTP }, + {"h1-case-adjust-bogus-client", PR_O2_H1_ADJ_BUGCLI, PR_CAP_FE, 0, 0 }, + {"h1-case-adjust-bogus-server", PR_O2_H1_ADJ_BUGSRV, PR_CAP_BE, 0, 0 }, {"disable-h2-upgrade", PR_O2_NO_H2_UPGRADE, PR_CAP_FE, 0, PR_MODE_HTTP }, { NULL, 0, 0, 0 } };