mirror of
https://gitlab.com/news-flash/article_scraper.git
synced 2025-07-07 16:15:32 +02:00
update to reqwest 0.9
This commit is contained in:
parent
fcea6cf5d1
commit
5555118914
1 changed files with 2 additions and 2 deletions
|
@ -219,8 +219,8 @@ impl ImageDownloader {
|
|||
sub_type.push_str("+");
|
||||
sub_type.push_str(&header[start..].to_string());
|
||||
};
|
||||
|
||||
if let Some(extensions) = mime_guess::get_extensions(primary_type, &sub_type) {
|
||||
|
||||
if let Some(extensions) = mime_guess::get_extensions(&primary_type, &sub_type) {
|
||||
let mut extension_present = false;
|
||||
for extension in extensions {
|
||||
if image_name.ends_with(extension) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue