Move DefaultClient up
This commit is contained in:
parent
c3dbcb39db
commit
7ccf75ad43
@ -38,15 +38,15 @@ const (
|
||||
StatusClassCertificateRequired = 6
|
||||
)
|
||||
|
||||
var (
|
||||
crlf = []byte("\r\n")
|
||||
)
|
||||
|
||||
// DefaultClient is the default client. It is used by Send.
|
||||
//
|
||||
// On the first request, DefaultClient will load the default list of known hosts.
|
||||
var DefaultClient *Client
|
||||
|
||||
var (
|
||||
crlf = []byte("\r\n")
|
||||
)
|
||||
|
||||
func init() {
|
||||
DefaultClient = &Client{
|
||||
TrustCertificate: func(hostname string, cert *x509.Certificate, knownHosts *KnownHosts) error {
|
||||
|
Loading…
Reference in New Issue
Block a user