1
0
Fork 0
mirror of https://git.sr.ht/~adnano/go-gemini synced 2024-05-18 20:36:04 +02:00

Move DefaultClient up

This commit is contained in:
adnano 2020-09-27 22:15:36 -04:00
parent c3dbcb39db
commit 7ccf75ad43

View File

@ -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 {