From 53918950e0f47f9d2dc6367ef375864cf11c6836 Mon Sep 17 00:00:00 2001 From: innerpeace609 Date: Mon, 9 Mar 2026 17:29:53 -0400 Subject: [PATCH] fix: strictly honor http11 protocol by disabling http2 transport fallback --- common/httpx/httpx.go | 1 + 1 file changed, 1 insertion(+) diff --git a/common/httpx/httpx.go b/common/httpx/httpx.go index 039f4c4c..c86c8b21 100644 --- a/common/httpx/httpx.go +++ b/common/httpx/httpx.go @@ -157,6 +157,7 @@ func New(options *Options) (*HTTPX, error) { // disable http2 _ = os.Setenv("GODEBUG", "http2client=0") transport.TLSNextProto = map[string]func(string, *tls.Conn) http.RoundTripper{} + transport.ForceAttemptHTTP2 = false } if httpx.Options.SniName != "" {