]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
http: resurrect addition from 41fe621
authorStefan Eissing <stefan@eissing.org>
Thu, 7 Aug 2025 07:50:34 +0000 (09:50 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 7 Aug 2025 08:40:47 +0000 (10:40 +0200)
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

index 5e2a8c260f4df442dd65f723d560e0edb9eb697a..5e36decdd43cf39029c2ee7ddc01979b7c48ec62 100644 (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";