Skip to content

Commit 9899bba

Browse files
committed
set NextProto to work around golang/go#58434
1 parent 0f97141 commit 9899bba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

caddytest/caddytest.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ func CreateTestingTransport() *http.Transport {
321321
IdleConnTimeout: 90 * time.Second,
322322
TLSHandshakeTimeout: 5 * time.Second,
323323
ExpectContinueTimeout: 1 * time.Second,
324-
TLSClientConfig: &tls.Config{InsecureSkipVerify: true}, //nolint:gosec
324+
TLSClientConfig: &tls.Config{InsecureSkipVerify: true, NextProtos: []string{"h2", "http/1.1"}}, //nolint:gosec
325325
}
326326
}
327327

0 commit comments

Comments
 (0)