Merge branch 'patch-2' into 'master'

Set an actual User-Agent

See merge request World/podcasts!58
This commit is contained in:
Daniel Aleksandersen 2019-10-20 17:08:27 +00:00
commit 258e788a37

View File

@ -105,11 +105,7 @@ pub use crate::feed::{Feed, FeedBuilder};
pub use crate::models::Save;
pub use crate::models::{Episode, EpisodeWidgetModel, Show, ShowCoverModel, Source};
// Set the user agent, See #53 for more
// Keep this in sync with Tor-browser releases
/// The user-agent to be used for all the requests.
/// It originates from the Tor-browser UA.
pub const USER_AGENT: &str = "Mozilla/5.0 (Windows NT 6.1; rv:52.0) Gecko/20100101 Firefox/52.0";
pub const USER_AGENT: &str = "Hammond/1.0";
/// [XDG Base Direcotory](https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html) Paths.
#[allow(missing_debug_implementations)]