Merge pull request #2769 from ywk253100/170713_integration

Bug fix
This commit is contained in:
Daniel Jiang 2017-07-13 16:47:43 +08:00 committed by GitHub
commit 920c41c204

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 {