Skip HEAD requests for Pypicloud with Private S3 (#3070)

This commit is contained in:
elbaro 2024-04-17 03:25:35 +09:00 committed by GitHub
parent 295b58ad37
commit ab74263cbc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -77,6 +77,12 @@ impl Error {
if status == reqwest::StatusCode::NOT_FOUND {
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;
}
}
}