1
0
mirror of https://github.com/jht5945/buildj.git synced 2025-12-28 17:50:05 +08:00

add calc SHA256 progress

This commit is contained in:
2019-08-09 08:57:33 +08:00
parent 005e5812ac
commit 6975469d5f
2 changed files with 35 additions and 3 deletions

View File

@@ -17,7 +17,7 @@ use super::misc::{
pub fn download_url(url: &str, dest: &mut File) -> XResult<()> {
if *VERBOSE {
print_message(MessageType::DEBUG, &format!("Download URL: {}", url));
print_message(MessageType::DEBUG, &format!("Start download URL: {}", url));
}
let mut response = reqwest::get(url)?;
let header_content_length: i64 = match response.headers().get("content-length") {