diff options
author | Daniel Stenberg <daniel@haxx.se> | 2019-08-12 12:19:59 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2019-08-12 12:25:12 +0200 |
commit | 49800423ffa67d41ef5af9ac30a7037c36c08ea4 (patch) | |
tree | e177907b99518202e3e0f180480654cf04a8e368 | |
parent | d065b688a8c259f826ee4cb86d088813d0f99106 (diff) | |
download | curl-bagder/more-h3.tar.gz |
altsvc: make it use h3-22 with ngtcp2 as wellbagder/more-h3
-rw-r--r-- | lib/altsvc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/altsvc.c b/lib/altsvc.c index abea66c69..a649fefd8 100644 --- a/lib/altsvc.c +++ b/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"; |