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