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:
parent
c3dbcb39db
commit
7ccf75ad43
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue