MINOR: mux-h1: Don't add Connection close/keep-alive header for 1xx messages
No connection header must be added by the H1 mux in 1xx messages, including
101. Existing connection headers remains untouched, especially the "Connection:
upgrade" of 101 responses. This patch only avoids to add "Connection: close" or
"Connection: keep-alive" to 1xx responses.
diff --git a/src/mux_h1.c b/src/mux_h1.c
index 266a2e7..a49531f 100644
--- a/src/mux_h1.c
+++ b/src/mux_h1.c
@@ -1805,7 +1805,7 @@
goto full;
if (sl->flags & HTX_SL_F_XFER_LEN)
h1m->flags |= H1_MF_XFER_LEN;
- if (h1s->status < 200 && (h1s->status == 100 || h1s->status >= 102))
+ if (h1s->status < 200)
h1s->flags |= H1S_F_HAVE_O_CONN;
else if (h1s->status == 204 || h1s->status == 304)
h1s->flags |= H1S_F_BODYLESS_RESP;