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:
parent
96eb1cd760
commit
49b301b53b
1 changed files with 8 additions and 0 deletions
|
@ -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 |
|
||||
|
|
Loading…
Add table
Reference in a new issue