Fixed potential infinity auth (#173)

Follow up to an attempt in #169
This commit is contained in:
Fedor Korotkov
2022-08-08 16:50:13 +03:00
committed by GitHub
parent b83bce4544
commit 617a5d02dc
+1 -1
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)
}