Skip to content

Commit

Permalink
fix 'uv pip install' handling of gzip'd response and PEP 691
Browse files Browse the repository at this point in the history
  • Loading branch information
thundergolfer committed Feb 26, 2024
1 parent 088fa97 commit ed9a6f1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion crates/pypi-types/src/simple_json.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ fn sorted_simple_json_files<'de, D: Deserializer<'de>>(d: D) -> Result<Vec<File>
#[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<DistInfoMetadata>,
pub filename: String,
pub hashes: Hashes,
Expand Down
4 changes: 4 additions & 0 deletions crates/uv-client/src/registry_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,10 @@ impl RegistryClient {
.client
.uncached()
.head(url.clone())
.header(
"accept-encoding",
http::HeaderValue::from_static("identity")
)
.build()
.map_err(ErrorKind::RequestError)?;

Expand Down

0 comments on commit ed9a6f1

Please sign in to comment.