aboutsummaryrefslogtreecommitdiffhomepage
path: root/ui/entry_scraper.go
diff options
context:
space:
mode:
authorGravatar Patrick <pmarschik@users.noreply.github.com>2018-09-20 03:19:24 +0200
committerGravatar Frédéric Guillot <fred@miniflux.net>2018-09-19 18:19:24 -0700
commit2538eea1776e1d03d33465ad2001512caca93937 (patch)
tree021c417d5f31606fe50d7945872c4cda6cdc2060 /ui/entry_scraper.go
parent1d335390c2ac7c0feeb94fce89eefdae9a1e7c17 (diff)
Add the possibility to override default user agent for each feed
Diffstat (limited to 'ui/entry_scraper.go')
-rw-r--r--ui/entry_scraper.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/entry_scraper.go b/ui/entry_scraper.go
index 0082307..b4a290f 100644
--- a/ui/entry_scraper.go
+++ b/ui/entry_scraper.go
@@ -38,7 +38,7 @@ func (c *Controller) FetchContent(w http.ResponseWriter, r *http.Request) {
return
}
- content, err := scraper.Fetch(entry.URL, entry.Feed.ScraperRules)
+ content, err := scraper.Fetch(entry.URL, entry.Feed.ScraperRules, entry.Feed.UserAgent)
if err != nil {
json.ServerError(w, err)
return