1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

minimal: http-client-multi: set h2 or h1 via alpn

This commit is contained in:
Andy Green 2020-12-17 19:21:30 +00:00
parent 96eb1cd760
commit 49b301b53b

View file

@ -384,6 +384,14 @@ int main(int argc, const char **argv)
return 1;
}
#if defined(LWS_ROLE_H2) && defined(LWS_ROLE_H1)
i.alpn = "h2,http/1.1";
#elif defined(LWS_ROLE_H2)
i.alpn = "h2";
#elif defined(LWS_ROLE_H1)
i.alpn = "http/1.1";
#endif
i.context = context;
i.ssl_connection = LCCSCF_USE_SSL |
LCCSCF_H2_QUIRK_OVERFLOWS_TXCR |