fix strange if test ending on other line

This commit is contained in:
Stefan Eissing 2025-07-18 14:00:56 +02:00
parent 71c7458139
commit 33b0fb8b1e
No known key found for this signature in database

View file

@ -2688,8 +2688,7 @@ CURLcode Curl_http(struct Curl_easy *data, bool *done)
else if(alpn && !strcmp("h2", alpn)) {
#ifndef CURL_DISABLE_PROXY
if((Curl_conn_http_version(data, conn) != 20) &&
conn->bits.proxy && !conn->bits.tunnel_proxy
) {
conn->bits.proxy && !conn->bits.tunnel_proxy) {
result = Curl_http2_switch(data);
if(result)
goto fail;