mirror of
https://github.com/goharbor/harbor.git
synced 2025-03-14 23:49:09 +01:00
fix close response missing (#16820)
It has to close the http response on deleting manifest Signed-off-by: Wang Yan <wangyan@vmware.com>
This commit is contained in:
parent
2dceffe457
commit
c333218ba2
@ -379,6 +379,7 @@ func (a *adapter) DeleteManifest(repository, reference string) error {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
defer resp.Body.Close()
|
||||||
|
|
||||||
body, err := ioutil.ReadAll(resp.Body)
|
body, err := ioutil.ReadAll(resp.Body)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user