aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/getinfo.c3
-rw-r--r--lib/url.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/lib/getinfo.c b/lib/getinfo.c
index e118da80d..5fd8dc018 100644
--- a/lib/getinfo.c
+++ b/lib/getinfo.c
@@ -235,6 +235,9 @@ static CURLcode getinfo_long(struct Curl_easy *data, CURLINFO info,
case 20:
*param_longp = CURL_HTTP_VERSION_2_0;
break;
+ case 30:
+ *param_longp = CURL_HTTP_VERSION_3;
+ break;
default:
*param_longp = CURL_HTTP_VERSION_NONE;
break;
diff --git a/lib/url.c b/lib/url.c
index c61319b3b..99bea3f01 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -3201,7 +3201,7 @@ static CURLcode parse_connect_to_slist(struct Curl_easy *data,
break;
case ALPN_h3:
conn->transport = TRNSPRT_QUIC;
- conn->httpversion = CURL_HTTP_VERSION_LAST; /* for the moment */
+ conn->httpversion = CURL_HTTP_VERSION_3;
break;
default: /* shouldn't be possible */
break;