mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-27 04:35:16 +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 {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
AddUISecret(req)
|
||||||
client := &http.Client{}
|
client := &http.Client{}
|
||||||
resp, err := client.Do(req)
|
resp, err := client.Do(req)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
AddUISecret(req)
|
|
||||||
defer resp.Body.Close()
|
defer resp.Body.Close()
|
||||||
|
|
||||||
if resp.StatusCode != expectSC {
|
if resp.StatusCode != expectSC {
|
||||||
|
Loading…
Reference in New Issue
Block a user