diff --git a/crates/pypi-types/src/simple_json.rs b/crates/pypi-types/src/simple_json.rs index 9380a9012..a0de88571 100644 --- a/crates/pypi-types/src/simple_json.rs +++ b/crates/pypi-types/src/simple_json.rs @@ -38,7 +38,7 @@ fn sorted_simple_json_files<'de, D: Deserializer<'de>>(d: D) -> Result #[serde(rename_all = "kebab-case")] pub struct File { // Non-PEP 691-compliant alias used by PyPI. - #[serde(alias = "data_dist_info_metadata")] + #[serde(alias = "data-dist-info-metadata")] pub dist_info_metadata: Option, pub filename: String, pub hashes: Hashes, diff --git a/crates/uv-client/src/registry_client.rs b/crates/uv-client/src/registry_client.rs index f0f2915da..01497c9c4 100644 --- a/crates/uv-client/src/registry_client.rs +++ b/crates/uv-client/src/registry_client.rs @@ -459,6 +459,10 @@ impl RegistryClient { .client .uncached() .head(url.clone()) + .header( + "accept-encoding", + http::HeaderValue::from_static("identity"), + ) .build() .map_err(ErrorKind::RequestError)?;