examples: support both hq-24 and hq-23 in the non-h3 example clients
diff --git a/examples/client.c b/examples/client.c
index e184375..7e3c745 100644
--- a/examples/client.c
+++ b/examples/client.c
@@ -243,7 +243,7 @@
}
quiche_config_set_application_protos(config,
- (uint8_t *) "\x05hq-24\x08http/0.9", 15);
+ (uint8_t *) "\x05hq-24\x05hq-23\x08http/0.9", 15);
quiche_config_set_idle_timeout(config, 5000);
quiche_config_set_max_packet_size(config, MAX_DATAGRAM_SIZE);
diff --git a/examples/client.rs b/examples/client.rs
index 34e4cf8..78f49d0 100644
--- a/examples/client.rs
+++ b/examples/client.rs
@@ -114,7 +114,7 @@
config.verify_peer(true);
config
- .set_application_protos(b"\x05hq-24\x08http/0.9")
+ .set_application_protos(b"\x05hq-24\x05hq-23\x08http/0.9")
.unwrap();
config.set_idle_timeout(5000);