We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8adf1df + c8c6a96 commit 9210810Copy full SHA for 9210810
src/cargo/sources/registry/http_remote.rs
@@ -235,7 +235,7 @@ impl<'cfg> HttpRegistry<'cfg> {
235
result.with_context(|| format!("failed to download from `{}`", url))?;
236
let code = handle.response_code()?;
237
// Keep this list of expected status codes in sync with the codes handled in `load`
238
- if !matches!(code, 200 | 304 | 401 | 404 | 451) {
+ if !matches!(code, 200 | 304 | 410 | 404 | 451) {
239
let url = handle.effective_url()?.unwrap_or(&url);
240
return Err(HttpNotSuccessful {
241
code,
0 commit comments