|
@@ -72,6 +72,9 @@ func HttpPost(url, postData string, params ...string) ([]byte, error) {
|
|
|
req.Header.Set("Content-Type", contentType)
|
|
|
req.Header.Set("authorization", utils.MD5(utils.APP_EDB_LIB_NAME_EN+utils.EDB_LIB_Md5_KEY))
|
|
|
resp, err := client.Do(req)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
defer resp.Body.Close()
|
|
|
b, err := ioutil.ReadAll(resp.Body)
|
|
|
fmt.Println("HttpPost:" + string(b))
|