OCI: always read channel until end (#284)

This commit is contained in:
Nikolay Edigaryev
2022-10-18 11:44:14 -04:00
committed by GitHub
parent 39e1b84423
commit 0e77f14dd7
+1
View File
@@ -295,6 +295,7 @@ class Registry {
var (channel, response) = try await authAwareRequest(request: request)
if doAuth && response.statusCode == HTTPCode.Unauthorized.rawValue {
_ = try await channel.asData()
try await auth(response: response)
(channel, response) = try await authAwareRequest(request: request)
}