mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-23 10:45:45 +01:00
bug fix
This commit is contained in:
parent
ca6bd3b585
commit
c4fbc707af
@ -80,12 +80,13 @@ func RequestAsUI(method, url string, body io.Reader, expectSC int) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
AddUISecret(req)
|
||||
client := &http.Client{}
|
||||
resp, err := client.Do(req)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
AddUISecret(req)
|
||||
defer resp.Body.Close()
|
||||
|
||||
if resp.StatusCode != expectSC {
|
||||
|
Loading…
Reference in New Issue
Block a user