异常不退出
This commit is contained in:
parent
1310a49824
commit
d473317c7c
|
|
@ -34,7 +34,7 @@ func Post(endpoint string, postBody string, authorization string) string {
|
|||
client := &http.Client{}
|
||||
resp, err := client.Do(req)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
return err.Error()
|
||||
}
|
||||
defer resp.Body.Close()
|
||||
// body, _ := ioutil.ReadAll(resp.Body)
|
||||
|
|
|
|||
Loading…
Reference in New Issue