summaryrefslogtreecommitdiff
path: root/lib/url.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2019-08-07 19:30:53 +0200
committerDaniel Stenberg <daniel@haxx.se>2019-08-08 08:28:43 +0200
commita93b43cde82d7a48014990d6a31dc917c1b5f93c (patch)
treeccf50dc0167cd1104240e97ec28e2ff4ef08cae1 /lib/url.c
parent98c3f14871d1de77d1f9704e2f309aef9be33553 (diff)
downloadcurl-a93b43cde82d7a48014990d6a31dc917c1b5f93c.tar.gz
http3: fix the HTTP/3 in the request, make alt-svc set right versions
Closes #4200
Diffstat (limited to 'lib/url.c')
-rw-r--r--lib/url.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/url.c b/lib/url.c
index d31f83065..0b681803d 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -3195,14 +3195,14 @@ static CURLcode parse_connect_to_slist(struct Curl_easy *data,
/* protocol version switch */
switch(nalpnid) {
case ALPN_h1:
- conn->httpversion = CURL_HTTP_VERSION_1_1;
+ conn->httpversion = 11;
break;
case ALPN_h2:
- conn->httpversion = CURL_HTTP_VERSION_2TLS;
+ conn->httpversion = 20;
break;
case ALPN_h3:
conn->transport = TRNSPRT_QUIC;
- conn->httpversion = CURL_HTTP_VERSION_3;
+ conn->httpversion = 30;
break;
default: /* shouldn't be possible */
break;