mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-24 17:47:46 +01:00
Close the reponse body after reading data (#11594)
Close the reponse body after reading data Signed-off-by: Wenkai Yin <yinw@vmware.com>
This commit is contained in:
parent
4b4091b217
commit
f972f2989c
@ -86,6 +86,7 @@ func (a *authorizer) initialize(u *url.URL) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer resp.Body.Close()
|
||||
|
||||
challenges := challenge.ResponseChallenges(resp)
|
||||
// no challenge, mean no auth
|
||||
|
Loading…
Reference in New Issue
Block a user