Skip to content

Commit

Permalink
remove rss-funnel as user_agent variant
Browse files Browse the repository at this point in the history
  • Loading branch information
shouya committed Jul 8, 2024
1 parent 5fce9b8 commit a886b7c
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/server/image_proxy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,6 @@ enum UserAgent {
None,
#[default]
Transparent,
RssFunnel,
#[serde(untagged)]
Fixed(String),
}
Expand All @@ -300,7 +299,6 @@ impl UserAgent {
})?;
Ok(Some(user_agent.to_string()))
}
Self::RssFunnel => Ok(Some(util::USER_AGENT.to_string())),
Self::Fixed(s) => Ok(Some(s.clone())),
}
}
Expand Down Expand Up @@ -391,7 +389,6 @@ impl Config {
let user_agent = match user_agent {
UserAgent::None => "none",
UserAgent::Transparent => "transparent",
UserAgent::RssFunnel => "rss_funnel",
UserAgent::Fixed(s) => &urlencoding::encode(s),
};
params.push(format!("user_agent={user_agent}"));
Expand Down

0 comments on commit a886b7c

Please sign in to comment.