fix(registry): handle 404 over 401 error code

This commit is contained in:
daimond113 2024-11-28 15:51:52 +01:00
parent 56579e38b2
commit 3aadebf3ea
No known key found for this signature in database
GPG key ID: 3A8ECE51328B513C

View file

@ -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(_) => {