From a9e934bbd189b7d85af454f03ec1ade692154fd5 Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Tue, 6 Sep 2022 10:09:40 +0200 Subject: [PATCH] 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. --- src/proxy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/proxy.c b/src/proxy.c index 7a2d40056..6fad8ee91 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 } };