Loading src/http.cpp +4 −3 Original line number Diff line number Diff line Loading @@ -247,9 +247,10 @@ libhttppp::HttpClient::HttpClient(const HttpUrl& desturl, int vers, int timeoutS if (h2_ok) { _vers = 2; } else { HTTPException ex; ex[HTTPException::Error] << "HttpClient ctor connect failed: HTTP/2 negotiation failed after HTTP/3 fallback"; throw ex; // Peer doesn't support HTTP/2 via ALPN either (e.g. HTTP/1.1-only // server) -- fall back to plain HTTP/1.1 instead of giving up. _vers = 0; resetConnection(); } } else { // Cleartext cannot negotiate ALPN; fall back directly. Loading Loading
src/http.cpp +4 −3 Original line number Diff line number Diff line Loading @@ -247,9 +247,10 @@ libhttppp::HttpClient::HttpClient(const HttpUrl& desturl, int vers, int timeoutS if (h2_ok) { _vers = 2; } else { HTTPException ex; ex[HTTPException::Error] << "HttpClient ctor connect failed: HTTP/2 negotiation failed after HTTP/3 fallback"; throw ex; // Peer doesn't support HTTP/2 via ALPN either (e.g. HTTP/1.1-only // server) -- fall back to plain HTTP/1.1 instead of giving up. _vers = 0; resetConnection(); } } else { // Cleartext cannot negotiate ALPN; fall back directly. Loading