also set conn->httpversion_seen when switching to HTTP/2 without ALPN

because of PRIOR_KNOWLEDGE configuration.
This commit is contained in:
Stefan Eissing 2025-08-05 14:04:35 +02:00
parent 94f3540501
commit 05ca65c650
No known key found for this signature in database

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