mirror of
https://github.com/astral-sh/uv.git
synced 2025-11-23 12:56:47 +00:00
Skip HEAD requests for Pypicloud with Private S3 (#3070)
This commit is contained in:
parent
295b58ad37
commit
ab74263cbc
1 changed files with 6 additions and 0 deletions
|
|
@ -77,6 +77,12 @@ impl Error {
|
||||||
if status == reqwest::StatusCode::NOT_FOUND {
|
if status == reqwest::StatusCode::NOT_FOUND {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// In some cases, registries (like PyPICloud) return a 403 for HEAD requests
|
||||||
|
// when they're not supported. Again, it's better to be lenient here.
|
||||||
|
if status == reqwest::StatusCode::FORBIDDEN {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue