nats discovery

This commit is contained in:
mr 2024-10-18 08:51:12 +02:00
parent 3c54f3d39e
commit 59a1b52242

View File

@ -65,7 +65,7 @@ func (caller *HTTPCaller) CallGet(url string, subpath string) ([]byte, error) {
// CallPut calls the DELETE method on the HTTP server // CallPut calls the DELETE method on the HTTP server
func (caller *HTTPCaller) CallDelete(url string, subpath string) ([]byte, error) { func (caller *HTTPCaller) CallDelete(url string, subpath string) ([]byte, error) {
resp, err := http.NewRequest("DELETE", url+subpath, nil) resp, err := http.NewRequest("DELETE", url+subpath, nil)
if err != nil { if err != nil || resp == nil || resp.Body == nil {
return nil, err return nil, err
} }
defer resp.Body.Close() defer resp.Body.Close()