Dont ask me how this is working.

This commit is contained in:
Jordan Petridis
2018-01-12 08:50:16 +02:00
parent e20b96e061
commit 8e367b7e86
8 changed files with 223 additions and 134 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ fn download_into(
ct_len.map(|x| info!("File Lenght: {}", x));
ct_type.map(|x| info!("Content Type: {}", x));
let ext = get_ext(ct_type.cloned()).unwrap_or(String::from("unknown"));
let ext = get_ext(ct_type.cloned()).unwrap_or_else(|| String::from("unknown"));
info!("Extension: {}", ext);
// Construct a temp file to save desired content.