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:
parent
f570873aba
commit
b272c99911
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue