mirror of
https://github.com/goharbor/harbor
synced 2025-04-17 14:14:37 +00:00
commit
920c41c204
|
@ -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