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
This commit is contained in:
Stefan Eissing 2025-08-07 09:50:34 +02:00 committed by Daniel Stenberg
parent 17bf8809ef
commit 2d9f24bf24
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View file

@ -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";