]> granicus.if.org Git - curl/commitdiff
altsvc: make it use h3-22 with ngtcp2 as well
authorDaniel Stenberg <daniel@haxx.se>
Mon, 12 Aug 2019 10:19:59 +0000 (12:19 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 12 Aug 2019 20:30:58 +0000 (22:30 +0200)
lib/altsvc.c

index abea66c69afc469f20df138f73d70cf3674d4610..a649fefd80e41c6e0a6a8bf88a1b173d4bd65dc4 100644 (file)
@@ -54,7 +54,7 @@ static enum alpnid alpn2alpnid(char *name)
     return ALPN_h1;
   if(strcasecompare(name, "h2"))
     return ALPN_h2;
-#if defined(USE_QUICHE) && !defined(UNITTESTS)
+#if (defined(USE_QUICHE) || defined(USE_NGHTTP2)) && !defined(UNITTESTS)
   if(strcasecompare(name, "h3-22"))
     return ALPN_h3;
 #else
@@ -73,7 +73,7 @@ const char *Curl_alpnid2str(enum alpnid id)
   case ALPN_h2:
     return "h2";
   case ALPN_h3:
-#if defined(USE_QUICHE) && !defined(UNITTESTS)
+#if (defined(USE_QUICHE) || defined(USE_NGHTTP2)) && !defined(UNITTESTS)
     return "h3-22";
 #else
     return "h3";