Skip to content

Commit

Permalink
OCI: always read channel until end (#284)
Browse files Browse the repository at this point in the history
  • Loading branch information
edigaryev authored Oct 18, 2022
1 parent 39e1b84 commit 0e77f14
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Sources/tart/OCI/Registry.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 0e77f14

Please sign in to comment.