Commit 1bec86c8 authored by jan.koester's avatar jan.koester
Browse files

test

parent 10bca8f9
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -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.