From 4517bf78fdd387de8f4f942036678d57d81d6aaf Mon Sep 17 00:00:00 2001 From: Mohammed Al Sahaf Date: Tue, 24 Oct 2023 11:32:18 +0300 Subject: [PATCH] set `NextProto` to work around golang/go#58434 --- caddytest/caddytest.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/caddytest/caddytest.go b/caddytest/caddytest.go index 39aca23476e3..6ca6dfc33095 100644 --- a/caddytest/caddytest.go +++ b/caddytest/caddytest.go @@ -321,7 +321,7 @@ func CreateTestingTransport() *http.Transport { IdleConnTimeout: 90 * time.Second, TLSHandshakeTimeout: 5 * time.Second, ExpectContinueTimeout: 1 * time.Second, - TLSClientConfig: &tls.Config{InsecureSkipVerify: true}, //nolint:gosec + TLSClientConfig: &tls.Config{InsecureSkipVerify: true, NextProtos: []string{"h2"}}, //nolint:gosec } }