From: Stefan Eissing Date: Thu, 7 Aug 2025 07:50:34 +0000 (+0200) Subject: http: resurrect addition from 41fe621 X-Git-Tag: curl-8_16_0~223 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2d9f24bf24de65b3da1a653e01cbecdd1e7250d6;p=thirdparty%2Fcurl.git 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 --- 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";