]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: mux-h1: Add the header connection in lower case in outgoing messages
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 17 Jun 2019 12:07:46 +0000 (14:07 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 17 Jun 2019 12:15:32 +0000 (14:15 +0200)
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

index 317f1a55c5d0459de477f111b93996ea2b60c8e7..21deb3544836d34388642d575d0d9e6d9b89ff29 100644 (file)
@@ -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) {