1
0
Fork 0
mirror of https://gitlab.com/news-flash/article_scraper.git synced 2025-07-07 16:15:32 +02:00

fix missing '/' in url completion

This commit is contained in:
Jan Lukas Gernert 2020-01-27 01:21:21 +01:00
parent f570873aba
commit b272c99911

View file

@ -590,6 +590,9 @@ impl ArticleScraper {
};
}
if !completed_url.ends_with('/') {
completed_url.push_str("/");
}
completed_url.push_str(incomplete_url);
let url = url::Url::parse(&completed_url).context(ScraperErrorKind::Url)?;
return Ok(url);