diff options
author | Daniel Stenberg <daniel@haxx.se> | 2021-04-01 16:25:19 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2021-04-01 23:50:05 +0200 |
commit | cd2ff2708f57375d29ed86b375ab47de3ef678d8 (patch) | |
tree | c3e837b48d7a15dd7aa9621ec6875f9bdd866750 /lib/vtls/schannel.c | |
parent | 06a7f2745e58cd472894a2f4bd706c18a1acd03d (diff) | |
download | curl-bagder/gnutls-http2.tar.gz |
TLS: fix HTTP/2 selectionbagder/gnutls-http2
for GnuTLS, BearSSL, mbedTLS, NSS, SChannnel, Secure Transport and
wolfSSL...
Regression since 88dd1a8a115b1f5ece (shipped in 7.76.0)
Reported-by: Kenneth Davidson
Fixes #6825
Diffstat (limited to 'lib/vtls/schannel.c')
-rw-r--r-- | lib/vtls/schannel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/vtls/schannel.c b/lib/vtls/schannel.c index 931bd853e..961a71f6d 100644 --- a/lib/vtls/schannel.c +++ b/lib/vtls/schannel.c @@ -862,7 +862,7 @@ schannel_connect_step1(struct Curl_easy *data, struct connectdata *conn, list_start_index = cur; #ifdef USE_NGHTTP2 - if(data->state.httpversion >= CURL_HTTP_VERSION_2) { + if(data->state.httpwant >= CURL_HTTP_VERSION_2) { memcpy(&alpn_buffer[cur], NGHTTP2_PROTO_ALPN, NGHTTP2_PROTO_ALPN_LEN); cur += NGHTTP2_PROTO_ALPN_LEN; infof(data, "schannel: ALPN, offering %s\n", NGHTTP2_PROTO_VERSION_ID); |