From 3aadebf3ea71560f6a06992768b073dd17ffd42f Mon Sep 17 00:00:00 2001 From: daimond113 <72147841+daimond113@users.noreply.github.com> Date: Thu, 28 Nov 2024 15:51:52 +0100 Subject: [PATCH] fix(registry): handle 404 over 401 error code --- registry/src/auth/github.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/registry/src/auth/github.rs b/registry/src/auth/github.rs index bc66c3b..fd81c78 100644 --- a/registry/src/auth/github.rs +++ b/registry/src/auth/github.rs @@ -41,7 +41,7 @@ impl AuthImpl for GitHubAuth { { Ok(response) => match response.error_for_status_ref() { Ok(_) => response, - Err(e) if e.status().is_some_and(|s| s == StatusCode::UNAUTHORIZED) => { + Err(e) if e.status().is_some_and(|s| s == StatusCode::NOT_FOUND) => { return Ok(None); } Err(_) => {