Skip to content
Permalink
Browse files

altsvc: make it use h3-22 with ngtcp2 as well

  • Loading branch information...
bagder committed Aug 12, 2019
1 parent 368d444 commit 49e6b3857fb65d93b40ff6591b57d855586a8d99
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/altsvc.c
@@ -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";

0 comments on commit 49e6b38

Please sign in to comment.
You can’t perform that action at this time.