Skip to content

Commit

Permalink
altsvc: with quiche, use the quiche h3 alpn string
Browse files Browse the repository at this point in the history
Closes #4183
  • Loading branch information
bagder committed Aug 3, 2019
1 parent 1132f43 commit 0711153
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/altsvc.c
Expand Up @@ -56,8 +56,13 @@ static enum alpnid alpn2alpnid(char *name)
return ALPN_h2;
if(strcasecompare(name, "h2c"))
return ALPN_h2c;
#ifdef USE_QUICHE
if(strcasecompare(name, "h3-20"))
return ALPN_h3;
#else
if(strcasecompare(name, "h3"))
return ALPN_h3;
#endif
return ALPN_none; /* unknown, probably rubbish input */
}

Expand All @@ -72,7 +77,11 @@ const char *Curl_alpnid2str(enum alpnid id)
case ALPN_h2c:
return "h2c";
case ALPN_h3:
#ifdef USE_QUICHE
return "h3-20";
#else
return "h3";
#endif
default:
return ""; /* bad */
}
Expand Down

0 comments on commit 0711153

Please sign in to comment.