1
0
Fork 0
mirror of https://git.sr.ht/~adnano/go-gemini synced 2024-06-10 06:06:07 +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 StatusClassCertificateRequired = 6
) )
var (
crlf = []byte("\r\n")
)
// DefaultClient is the default client. It is used by Send. // DefaultClient is the default client. It is used by Send.
// //
// On the first request, DefaultClient will load the default list of known hosts. // On the first request, DefaultClient will load the default list of known hosts.
var DefaultClient *Client var DefaultClient *Client
var (
crlf = []byte("\r\n")
)
func init() { func init() {
DefaultClient = &Client{ DefaultClient = &Client{
TrustCertificate: func(hostname string, cert *x509.Certificate, knownHosts *KnownHosts) error { TrustCertificate: func(hostname string, cert *x509.Certificate, knownHosts *KnownHosts) error {