]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MEDIUM: mux-h2: register mux for both HTTP and HTX modes
authorWilly Tarreau <w@1wt.eu>
Fri, 30 Nov 2018 15:49:47 +0000 (16:49 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 1 Dec 2018 18:03:20 +0000 (19:03 +0100)
The H2 mux will now be called for both HTTP and HTX modes. For now the
data transferr functions are not HTX-aware so this will lead to problems
if used as-is but it's convenient for development and debugging.

src/mux_h2.c

index c91905f92caa745014018524b30c3ab27e429c8d..001d1dad8fe52d3db528c9e46a703e649bdc07b3 100644 (file)
@@ -3826,7 +3826,7 @@ static const struct mux_ops h2_ops = {
 
 /* PROTO selection : this mux registers PROTO token "h2" */
 static struct mux_proto_list mux_proto_h2 =
-       { .token = IST("h2"), .mode = PROTO_MODE_HTTP, .side = PROTO_SIDE_FE, .mux = &h2_ops };
+       { .token = IST("h2"), .mode = PROTO_MODE_HTTP | PROTO_MODE_HTX, .side = PROTO_SIDE_FE, .mux = &h2_ops };
 
 INITCALL1(STG_REGISTER, register_mux_proto, &mux_proto_h2);