RssAgent accepts `headers`, `basic_auth` and `user_agent`.

These options are provided by WebRequestConcern.

Akinori MUSHA 9 years ago
parent
commit
d18641d701
1 changed files with 3 additions and 0 deletions
  1. 3 0
      app/models/agents/rss_agent.rb

+ 3 - 0
app/models/agents/rss_agent.rb

@@ -20,6 +20,9 @@ module Agents
20 20
           * `url` - The URL of the RSS feed.
21 21
           * `clean` - Attempt to use [feed-normalizer](https://github.com/aasmith/feed-normalizer)'s' `clean!` method to cleanup HTML in the feed.  Set to `true` to use.
22 22
           * `expected_update_period_in_days` - How often you expect this RSS feed to change.  If more than this amount of time passes without an update, the Agent will mark itself as not working.
23
+          * `headers` - When present, it should be a hash of headers to send with the request.
24
+          * `basic_auth` - Specify HTTP basic auth parameters: `"username:password"`, or `["username", "password"]`.
25
+          * `user_agent` - A custom User-Agent name (default: "Faraday v#{Faraday::VERSION}").
23 26
       MD
24 27
     end
25 28