Remove Client struct

Gemini requests are very simple and leave little room for customization,
so a configurable Client is not necessary.
This commit is contained in:
adnano
2020-09-24 01:55:41 -04:00
parent ace66eceb0
commit 891c4fbec4
2 changed files with 7 additions and 11 deletions

View File

@@ -12,7 +12,6 @@ import (
"git.sr.ht/~adnano/go-gemini"
)
var client gemini.Client
var cert tls.Certificate
func init() {
@@ -37,7 +36,7 @@ func makeRequest(url string) {
}
req.TLSConfig.InsecureSkipVerify = true
req.TLSConfig.Certificates = append(req.TLSConfig.Certificates, cert)
resp, err := client.Do(req)
resp, err := gemini.Do(req)
if err != nil {
log.Fatal(err)
}