diff options
author | Frédéric Guillot <fred@miniflux.net> | 2017-12-01 22:29:18 -0800 |
---|---|---|
committer | Frédéric Guillot <fred@miniflux.net> | 2017-12-01 22:29:18 -0800 |
commit | fb2a73c91ef76472d44a36c8214f46dc8fbbf538 (patch) | |
tree | d9206419de42b86b6066041d6b7298838d0d9818 /reader/icon | |
parent | 1a90c059e716a90c9132fd211df9adda038b8950 (diff) |
Proxify image enclosures
Diffstat (limited to 'reader/icon')
-rw-r--r-- | reader/icon/finder.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/reader/icon/finder.go b/reader/icon/finder.go index fe6e86d..c55e4d1 100644 --- a/reader/icon/finder.go +++ b/reader/icon/finder.go @@ -20,7 +20,7 @@ import ( // FindIcon try to find the website's icon. func FindIcon(websiteURL string) (*model.Icon, error) { - rootURL := url.GetRootURL(websiteURL) + rootURL := url.RootURL(websiteURL) client := http.NewClient(rootURL) response, err := client.Get() if err != nil { @@ -72,9 +72,9 @@ func parseDocument(websiteURL string, data io.Reader) (string, error) { } if iconURL == "" { - iconURL = url.GetRootURL(websiteURL) + "favicon.ico" + iconURL = url.RootURL(websiteURL) + "favicon.ico" } else { - iconURL, _ = url.GetAbsoluteURL(websiteURL, iconURL) + iconURL, _ = url.AbsoluteURL(websiteURL, iconURL) } return iconURL, nil |