summaryrefslogtreecommitdiff
path: root/reader/scraper/scraper.go
diff options
context:
space:
mode:
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)
}