aboutsummaryrefslogtreecommitdiff
path: root/internal/feed/parse.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/feed/parse.go')
-rw-r--r--internal/feed/parse.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/feed/parse.go b/internal/feed/parse.go
index 539cad0..fe3374a 100644
--- a/internal/feed/parse.go
+++ b/internal/feed/parse.go
@@ -14,14 +14,14 @@ import (
// share HTTP clients
var (
- stdHTTPClient *http.Client
- unsafeHTTPClient *http.Client
+ stdHTTPClient *http.Client
+ unsafeHTTPClient *http.Client
)
func init() {
// std
stdHTTPClient = &http.Client{Transport: http.DefaultTransport}
-
+
// unsafe
tlsConfig := &tls.Config{InsecureSkipVerify: true}
transport := http.DefaultTransport.(*http.Transport).Clone()
@@ -45,7 +45,7 @@ func parseFeed(feed *Feed) error {
defer cancel()
fp := gofeed.NewParser()
- fp.Client = httpClient(*feed.NoTLS)
+ fp.Client = httpClient(feed.NoTLS)
parsedFeed, err := fp.ParseURLWithContext(feed.Url, ctx)
if err != nil {