diff options
author | Daniel Stenberg <daniel@haxx.se> | 2019-08-02 14:27:26 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2019-08-03 21:55:41 +0200 |
commit | 0711153b4609ee0a45de5c61a86e0c3313cbc2dd (patch) | |
tree | cf89883b47b0a649e3dae211631a9564732ec1c9 | |
parent | 1132f43012e44cb779fd916036da9599f31983d6 (diff) |
altsvc: with quiche, use the quiche h3 alpn string
Closes #4183
-rw-r--r-- | lib/altsvc.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/altsvc.c b/lib/altsvc.c index e4d3ea605..0e9471999 100644 --- a/lib/altsvc.c +++ b/lib/altsvc.c @@ -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 */ } @@ -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 */ } |