1
0
Fork 0
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:
Jan Lukas Gernert 2018-12-07 02:15:06 +01:00
parent fcea6cf5d1
commit 5555118914

View file

@ -219,8 +219,8 @@ impl ImageDownloader {
sub_type.push_str("+"); sub_type.push_str("+");
sub_type.push_str(&header[start..].to_string()); 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; let mut extension_present = false;
for extension in extensions { for extension in extensions {
if image_name.ends_with(extension) { if image_name.ends_with(extension) {