From 05ca65c65012f9d08f190ac262b587e4b889e3ad Mon Sep 17 00:00:00 2001 From: Stefan Eissing Date: Tue, 5 Aug 2025 14:04:35 +0200 Subject: [PATCH] also set `conn->httpversion_seen` when switching to HTTP/2 without ALPN because of PRIOR_KNOWLEDGE configuration. --- lib/http.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/http.c b/lib/http.c index 6a7270c0d4..a66a275787 100644 --- a/lib/http.c +++ b/lib/http.c @@ -2704,6 +2704,8 @@ CURLcode Curl_http(struct Curl_easy *data, bool *done) if(result) goto fail; info_version = "HTTP/2"; + /* There is no ALPN here, but the connection is now definitely h2 */ + conn->httpversion_seen = 20; } else info_version = "HTTP/1.x";