mirror of
https://github.com/cirruslabs/tart.git
synced 2026-10-09 15:35:31 +02:00
OCI: always read channel until end (#284)
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user