From a110ecbd843e156dd01c6ac581c735be5e240d5b Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Mon, 17 Jun 2019 14:07:46 +0200 Subject: [PATCH] BUG/MINOR: mux-h1: Add the header connection in lower case in outgoing messages When necessary, this header is directly added in outgoing messages by the H1 multiplexer. Because there is no HTX conversion first, the header name is not converserted to its lower case version. So, it must be added in lower case by the multiplexer. This patch must be backported to 2.0 and 1.9. --- src/mux_h1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mux_h1.c b/src/mux_h1.c index 317f1a55c..21deb3544 100644 --- a/src/mux_h1.c +++ b/src/mux_h1.c @@ -1642,7 +1642,7 @@ static size_t h1_process_output(struct h1c *h1c, struct buffer *buf, size_t coun /* There is no "Connection:" header and * it the conn_mode must be * processed. So do it */ - n = ist("Connection"); + n = ist("connection"); v = ist(""); h1_process_output_conn_mode(h1s, h1m, &v); if (v.len) {