|
@@ -65,7 +65,7 @@ func HTTPPostContext(ctx context.Context, uri string, data []byte, header map[st
|
|
|
|
|
|
|
|
defer response.Body.Close()
|
|
defer response.Body.Close()
|
|
|
if response.StatusCode != http.StatusOK {
|
|
if response.StatusCode != http.StatusOK {
|
|
|
- return nil, fmt.Errorf("http get error : uri=%v , statusCode=%v", uri, response.StatusCode)
|
|
|
|
|
|
|
+ return nil, fmt.Errorf("http post error : uri=%v , statusCode=%v", uri, response.StatusCode)
|
|
|
}
|
|
}
|
|
|
return ioutil.ReadAll(response.Body)
|
|
return ioutil.ReadAll(response.Body)
|
|
|
}
|
|
}
|