diff options
author | Patrick <pmarschik@users.noreply.github.com> | 2018-09-20 03:19:24 +0200 |
---|---|---|
committer | Frédéric Guillot <fred@miniflux.net> | 2018-09-19 18:19:24 -0700 |
commit | 2538eea1776e1d03d33465ad2001512caca93937 (patch) | |
tree | 021c417d5f31606fe50d7945872c4cda6cdc2060 /client | |
parent | 1d335390c2ac7c0feeb94fce89eefdae9a1e7c17 (diff) |
Add the possibility to override default user agent for each feed
Diffstat (limited to 'client')
-rw-r--r-- | client/core.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/client/core.go b/client/core.go index 437af51..53d1e13 100644 --- a/client/core.go +++ b/client/core.go @@ -91,6 +91,7 @@ type Feed struct { ScraperRules string `json:"scraper_rules"` RewriteRules string `json:"rewrite_rules"` Crawler bool `json:"crawler"` + UserAgent string `json:"user_agent"` Username string `json:"username"` Password string `json:"password"` Category *Category `json:"category,omitempty"` @@ -105,6 +106,7 @@ type FeedModification struct { ScraperRules *string `json:"scraper_rules"` RewriteRules *string `json:"rewrite_rules"` Crawler *bool `json:"crawler"` + UserAgent *string `json:"user_agent"` Username *string `json:"username"` Password *string `json:"password"` CategoryID *int64 `json:"category_id"` |