This commit is contained in:
Wenkai Yin 2017-07-13 13:58:24 +08:00
parent ca6bd3b585
commit c4fbc707af

View File

@ -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 {