Fixed potential infinity auth (#173)

Follow up to an attempt in #169
This commit is contained in:
Fedor Korotkov 2022-08-08 09:50:13 -04:00 committed by GitHub
parent b83bce4544
commit 617a5d02dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -258,7 +258,7 @@ class Registry {
var response = try await authAwareRequest(request: request)
if response.status == .unauthorized {
if doAuth && response.status == .unauthorized {
try await auth(response: response)
response = try await authAwareRequest(request: request)
}