Skip to content

Commit

Permalink
fix: if content length header doesnt exist
Browse files Browse the repository at this point in the history
  • Loading branch information
MordechaiHadad committed Sep 10, 2024
1 parent 4188c80 commit 725179d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/handlers/install_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ async fn download_version(
match response {
Ok(response) => {
if response.status() == 200 {
let total_size = response.content_length().unwrap();
let total_size = response.content_length().unwrap_or(0);
let mut response_bytes = response.bytes_stream();

// Progress Bar Setup
Expand Down

0 comments on commit 725179d

Please sign in to comment.