Skip to content

Commit

Permalink
set NextProto to work around golang/go#58434
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammed90 committed Oct 24, 2023
1 parent 0f97141 commit 4517bf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion caddytest/caddytest.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

Expand Down

0 comments on commit 4517bf7

Please sign in to comment.