From 42a768f715a788eaef14b1e5e3333cf842130507 Mon Sep 17 00:00:00 2001 From: Hachi-R Date: Sat, 12 Apr 2025 18:41:52 -0300 Subject: [PATCH] fix: remove etag check from resume validation --- rust_rpc/src/main.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/rust_rpc/src/main.rs b/rust_rpc/src/main.rs index 9a8b3d14..884366a8 100644 --- a/rust_rpc/src/main.rs +++ b/rust_rpc/src/main.rs @@ -807,13 +807,11 @@ impl ResumeManager { match HydraHeader::read_from_file(&mut reader) { Ok(header) => { let current_url_hash = Sha256::digest(url.as_bytes()); - let current_etag_hash = Sha256::digest(etag.as_bytes()); let url_matches = header.url_hash == current_url_hash.as_slice(); - let etag_matches = header.etag == current_etag_hash.as_slice(); let size_matches = header.file_size == file_size; - if url_matches && etag_matches && size_matches { + if url_matches && size_matches { return Ok(Self { header, file_path: path.to_string(),