mirror of
https://github.com/moparisthebest/curl
synced 2024-08-13 17:03:50 -04:00
altsvc: make it use h3-22 with ngtcp2 as well
This commit is contained in:
parent
368d444cc6
commit
49e6b3857f
@ -54,7 +54,7 @@ static enum alpnid alpn2alpnid(char *name)
|
|||||||
return ALPN_h1;
|
return ALPN_h1;
|
||||||
if(strcasecompare(name, "h2"))
|
if(strcasecompare(name, "h2"))
|
||||||
return ALPN_h2;
|
return ALPN_h2;
|
||||||
#if defined(USE_QUICHE) && !defined(UNITTESTS)
|
#if (defined(USE_QUICHE) || defined(USE_NGHTTP2)) && !defined(UNITTESTS)
|
||||||
if(strcasecompare(name, "h3-22"))
|
if(strcasecompare(name, "h3-22"))
|
||||||
return ALPN_h3;
|
return ALPN_h3;
|
||||||
#else
|
#else
|
||||||
@ -73,7 +73,7 @@ const char *Curl_alpnid2str(enum alpnid id)
|
|||||||
case ALPN_h2:
|
case ALPN_h2:
|
||||||
return "h2";
|
return "h2";
|
||||||
case ALPN_h3:
|
case ALPN_h3:
|
||||||
#if defined(USE_QUICHE) && !defined(UNITTESTS)
|
#if (defined(USE_QUICHE) || defined(USE_NGHTTP2)) && !defined(UNITTESTS)
|
||||||
return "h3-22";
|
return "h3-22";
|
||||||
#else
|
#else
|
||||||
return "h3";
|
return "h3";
|
||||||
|
Loading…
Reference in New Issue
Block a user