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 42b15ac commit ab42af5Copy full SHA for ab42af5
src/main.rs
@@ -50,7 +50,11 @@ fn validate_authentication(s: &str) -> Result<String, String> {
50
}
51
52
fn build_sitemap_url(args: &Args, sitemap_name: &str) -> anyhow::Result<Url> {
53
- let base_url = Url::parse(&args.url).expect("Failed to parse base URL");
+ let mut url_str = args.url.clone();
54
+ if !url_str.ends_with('/') {
55
+ url_str.push('/');
56
+ }
57
+ let base_url = Url::parse(&url_str).expect("Failed to parse base URL");
58
59
let mut full_url = base_url.join(sitemap_name).expect("Failed to join URL");
60
0 commit comments