mirror of https://github.com/astral-sh/uv
Fallback to `GET` on HTTP 400 when attempting to use range requests for wheel download (#11539)
See https://github.com/astral-sh/uv/issues/11501
This commit is contained in:
parent
47fb59fdab
commit
346e6b7e8b
|
|
@ -98,6 +98,12 @@ impl Error {
|
|||
if status == reqwest::StatusCode::FORBIDDEN {
|
||||
return true;
|
||||
}
|
||||
|
||||
// In some cases, registries (like Alibaba Cloud) return a 400 for HEAD requests
|
||||
// when they're not supported. Again, it's better to be lenient here.
|
||||
if status == reqwest::StatusCode::BAD_REQUEST {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue