aboutsummaryrefslogtreecommitdiffhomepage
path: root/reader/icon
diff options
context:
space:
mode:
Diffstat (limited to 'reader/icon')
-rw-r--r--reader/icon/finder.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/reader/icon/finder.go b/reader/icon/finder.go
index 2e7cb16..296ddec 100644
--- a/reader/icon/finder.go
+++ b/reader/icon/finder.go
@@ -12,7 +12,7 @@ import (
"strings"
"github.com/miniflux/miniflux/crypto"
- "github.com/miniflux/miniflux/http"
+ "github.com/miniflux/miniflux/http/client"
"github.com/miniflux/miniflux/logger"
"github.com/miniflux/miniflux/model"
"github.com/miniflux/miniflux/url"
@@ -23,8 +23,8 @@ import (
// FindIcon try to find the website's icon.
func FindIcon(websiteURL string) (*model.Icon, error) {
rootURL := url.RootURL(websiteURL)
- client := http.NewClient(rootURL)
- response, err := client.Get()
+ clt := client.New(rootURL)
+ response, err := clt.Get()
if err != nil {
return nil, fmt.Errorf("unable to download website index page: %v", err)
}
@@ -87,8 +87,8 @@ func parseDocument(websiteURL string, data io.Reader) (string, error) {
}
func downloadIcon(iconURL string) (*model.Icon, error) {
- client := http.NewClient(iconURL)
- response, err := client.Get()
+ clt := client.New(iconURL)
+ response, err := clt.Get()
if err != nil {
return nil, fmt.Errorf("unable to download iconURL: %v", err)
}