From 18d229e2bb1667f8fd9cd8a7669aecfe025801bc Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Wed, 8 May 2024 10:54:08 -0400 Subject: [PATCH] Upgrade `async_http_range_reader` to v0.8.0 (#3460) ## Summary Closes #2025. Closes https://github.com/astral-sh/uv/issues/3255. Closes https://github.com/astral-sh/uv/pull/2843. --- Cargo.lock | 4 ++-- Cargo.toml | 2 +- crates/uv-client/src/registry_client.rs | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 6c6e8f175b81..6472b446f5af 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -239,9 +239,9 @@ dependencies = [ [[package]] name = "async_http_range_reader" -version = "0.7.1" +version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8561e6613f8361df8bed11c0eef05b98384643bc81f6b753eec7c1d91f097509" +checksum = "f1a0e0571c5d724d17fbe0b608d31a91e94938722c141877d3a2982216b084c2" dependencies = [ "bisection", "futures", diff --git a/Cargo.toml b/Cargo.toml index 93f1d8acaf07..a832eb870848 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -53,7 +53,7 @@ anyhow = { version = "1.0.80" } async-channel = { version = "2.2.0" } async-compression = { version = "0.4.6" } async-trait = { version = "0.1.78" } -async_http_range_reader = { version = "0.7.1" } +async_http_range_reader = { version = "0.8.0" } async_zip = { git = "https://github.com/charliermarsh/rs-async-zip", rev = "1dcb40cfe1bf5325a6fd4bfcf9894db40241f585", features = ["deflate"] } axoupdater = { version = "0.6.0", default-features = false } backoff = { version = "0.4.0" } diff --git a/crates/uv-client/src/registry_client.rs b/crates/uv-client/src/registry_client.rs index 3b0538df3ce6..1c47becbc393 100644 --- a/crates/uv-client/src/registry_client.rs +++ b/crates/uv-client/src/registry_client.rs @@ -519,6 +519,7 @@ impl RegistryClient { let mut reader = AsyncHttpRangeReader::from_head_response( self.uncached_client().client(), response, + url.clone(), headers, ) .await