mirror of https://github.com/cirruslabs/tart.git
OCI: always read channel until end (#284)
This commit is contained in:
parent
39e1b84423
commit
0e77f14dd7
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue