forked from quic-go/quic-go
correctly handle nil tls.Configs in the http09.RoundTripper
This commit is contained in:
@@ -41,7 +41,10 @@ func (r *RoundTripper) RoundTrip(req *http.Request) (*http.Response, error) {
|
||||
}
|
||||
c, ok := r.clients[hostname]
|
||||
if !ok {
|
||||
tlsConf := r.TLSClientConfig.Clone()
|
||||
tlsConf := &tls.Config{}
|
||||
if r.TLSClientConfig != nil {
|
||||
tlsConf = r.TLSClientConfig.Clone()
|
||||
}
|
||||
tlsConf.NextProtos = []string{h09alpn}
|
||||
c = &client{
|
||||
hostname: hostname,
|
||||
|
||||
Reference in New Issue
Block a user