nats discovery
This commit is contained in:
@@ -77,7 +77,7 @@ func (caller *HTTPCaller) CallPost(url string, subpath string, body map[string]i
|
||||
postBody, _ := json.Marshal(body)
|
||||
responseBody := bytes.NewBuffer(postBody)
|
||||
resp, err := http.Post(url+subpath, "application/json", responseBody)
|
||||
if err != nil {
|
||||
if err != nil || resp == nil || resp.Body == nil {
|
||||
return nil, err
|
||||
}
|
||||
defer resp.Body.Close()
|
||||
|
Reference in New Issue
Block a user