mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-17 07:45:24 +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 {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
defer resp.Body.Close()
|
||||||
|
|
||||||
challenges := challenge.ResponseChallenges(resp)
|
challenges := challenge.ResponseChallenges(resp)
|
||||||
// no challenge, mean no auth
|
// no challenge, mean no auth
|
||||||
|
Loading…
Reference in New Issue
Block a user