summaryrefslogtreecommitdiff
path: root/reader/scraper/scraper.go
diff options
context:
space:
mode:
authorGravatar Frédéric Guillot <f@miniflux.net> 2020-09-27 14:29:48 -0700
committerGravatar Frédéric Guillot <fred@miniflux.net> 2020-09-27 14:37:46 -0700
commit16b7b3bc3e4237abbacdf8695a685ca9a03dc5bb (patch)
tree98e39026d91dc970f2d10f56075514d040b718bf /reader/scraper/scraper.go
parent065331c77fc4e55853833bf5964c29b866eaa40d (diff)
downloadv2-16b7b3bc3e4237abbacdf8695a685ca9a03dc5bb.tar.gz
v2-16b7b3bc3e4237abbacdf8695a685ca9a03dc5bb.tar.zst
v2-16b7b3bc3e4237abbacdf8695a685ca9a03dc5bb.zip
http client: remove dependency on global config options
Diffstat (limited to 'reader/scraper/scraper.go')
-rw-r--r--reader/scraper/scraper.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/reader/scraper/scraper.go b/reader/scraper/scraper.go
index 045bfbc0..c0b968a7 100644
--- a/reader/scraper/scraper.go
+++ b/reader/scraper/scraper.go
@@ -10,6 +10,7 @@ import (
"io"
"strings"
+ "miniflux.app/config"
"miniflux.app/http/client"
"miniflux.app/logger"
"miniflux.app/reader/readability"
@@ -20,7 +21,7 @@ import (
// Fetch downloads a web page and returns relevant contents.
func Fetch(websiteURL, rules, userAgent string) (string, error) {
- clt := client.New(websiteURL)
+ clt := client.NewClientWithConfig(websiteURL, config.Opts)
if userAgent != "" {
clt.WithUserAgent(userAgent)
}