From 2d9f24bf24de65b3da1a653e01cbecdd1e7250d6 Mon Sep 17 00:00:00 2001 From: Stefan Eissing Date: Thu, 7 Aug 2025 09:50:34 +0200 Subject: [PATCH] http: resurrect addition from 41fe621 For some reason, these lines were unintentionally deleted in 6d5570c. Thanks to IoannisGS for noticing. Bug: https://github.com/curl/curl/pull/18179#issuecomment-3162876532 Reported-by: IoannisGS on github Closes #18215 --- lib/http.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/http.c b/lib/http.c index 5e2a8c260f..5e36decdd4 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";