diff options
author | Daniel Stenberg <daniel@haxx.se> | 2019-08-07 19:30:53 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2019-08-08 08:28:43 +0200 |
commit | a93b43cde82d7a48014990d6a31dc917c1b5f93c (patch) | |
tree | ccf50dc0167cd1104240e97ec28e2ff4ef08cae1 /lib/url.c | |
parent | 98c3f14871d1de77d1f9704e2f309aef9be33553 (diff) | |
download | curl-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.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; |