We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb96c92 commit 4b14084Copy full SHA for 4b14084
src/feed.rs
@@ -16,7 +16,7 @@ pub fn generate_rss(
16
) -> Result<(), String> {
17
let date_format = "%a, %d %b %Y %H:%M:%S GMT"; // Loose RFC-822 format
18
19
- let feed_url = if !config.url.contains("http://") || !config.url.contains("https://") {
+ let feed_url = if !config.url.starts_with("http://") && !config.url.starts_with("https://") {
20
format!("http://{}", &config.url)
21
} else {
22
config.url.to_string()
0 commit comments