mirror of
https://github.com/distribution/distribution
synced 2024-11-12 05:45:51 +01:00
registry: client: repository: close response body
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
parent
e7ad3ced86
commit
20bba4025a
@ -308,6 +308,7 @@ check:
|
||||
if err != nil {
|
||||
return distribution.Descriptor{}, err
|
||||
}
|
||||
defer resp.Body.Close()
|
||||
|
||||
switch {
|
||||
case resp.StatusCode >= 200 && resp.StatusCode < 400:
|
||||
|
Loading…
Reference in New Issue
Block a user