mirror of
https://github.com/astral-sh/uv.git
synced 2025-07-07 21:35:00 +00:00
Fall back to streaming wheel when Content-Length
header is absent (#5000)
## Summary Closes https://github.com/astral-sh/uv/issues/4993
This commit is contained in:
parent
55b41d7d3d
commit
c345484c93
1 changed files with 8 additions and 0 deletions
|
@ -61,6 +61,14 @@ impl Error {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// The server doesn't support rage requests (it doesn't return the necessary headers).
|
||||||
|
ErrorKind::AsyncHttpRangeReader(
|
||||||
|
AsyncHttpRangeReaderError::ContentLengthMissing
|
||||||
|
| AsyncHttpRangeReaderError::ContentRangeMissing,
|
||||||
|
) => {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
// The server returned a "Method Not Allowed" error, indicating it doesn't support
|
// The server returned a "Method Not Allowed" error, indicating it doesn't support
|
||||||
// HEAD requests, so we can't check for range requests.
|
// HEAD requests, so we can't check for range requests.
|
||||||
ErrorKind::WrappedReqwestError(err) => {
|
ErrorKind::WrappedReqwestError(err) => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue