diff --git a/ocis-pkg/handlers/checkhttp.go b/ocis-pkg/handlers/checkhttp.go index a23e5076ff..a2af7c14cf 100644 --- a/ocis-pkg/handlers/checkhttp.go +++ b/ocis-pkg/handlers/checkhttp.go @@ -13,10 +13,11 @@ func NewHTTPCheck(url string) func(context.Context) error { c := http.Client{ Timeout: 3 * time.Second, } - _, err := c.Get(url) + resp, err := c.Get(url) if err != nil { return fmt.Errorf("could not connect to http server: %v", err) } + _ = resp.Body.Close() return nil } }