73983b434d0c85157d35ab103dda2be224deb58c
[openwrt-packages.git] /
1 commit 661bfc3d0e1b7756db59d00d86e316f694cae3c6
2 Author: Christopher Faulet <cfaulet@haproxy.com>
3 Date:   Mon Jun 17 14:07:46 2019 +0200
4
5     BUG/MINOR: mux-h1: Add the header connection in lower case in outgoing messages
6     
7     When necessary, this header is directly added in outgoing messages by the H1
8     multiplexer. Because there is no HTX conversion first, the header name is not
9     converserted to its lower case version. So, it must be added in lower case by
10     the multiplexer.
11     
12     This patch must be backported to 2.0 and 1.9.
13     
14     (cherry picked from commit a110ecbd843e156dd01c6ac581c735be5e240d5b)
15     Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
16
17 diff --git a/src/mux_h1.c b/src/mux_h1.c
18 index 317f1a55..21deb354 100644
19 --- a/src/mux_h1.c
20 +++ b/src/mux_h1.c
21 @@ -1642,7 +1642,7 @@ static size_t h1_process_output(struct h1c *h1c, struct buffer *buf, size_t coun
22                                         /* There is no "Connection:" header and
23                                          * it the conn_mode must be
24                                          * processed. So do it */
25 -                                       n = ist("Connection");
26 +                                       n = ist("connection");
27                                         v = ist("");
28                                         h1_process_output_conn_mode(h1s, h1m, &v);
29                                         if (v.len) {
git clone https://git.99rst.org/PROJECT