mirror of
https://github.com/go-micro/go-micro.git
synced 2024-11-24 08:02:32 +02:00
set nextprotos
This commit is contained in:
parent
0a3df1b2f3
commit
f5d37d92af
@ -444,6 +444,7 @@ func (h *httpTransport) Dial(addr string, opts ...DialOption) (Client, error) {
|
||||
InsecureSkipVerify: true,
|
||||
}
|
||||
}
|
||||
config.NextProtos = []string{"http/1.1"}
|
||||
conn, err = newConn(func(addr string) (net.Conn, error) {
|
||||
return tls.DialWithDialer(&net.Dialer{Timeout: dopts.Timeout}, "tcp", addr, config)
|
||||
})(addr)
|
||||
|
Loading…
Reference in New Issue
Block a user