mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-04 03:09:33 -06:00
fix bug in checkhttp.go
Signed-off-by: Christian Richter <crichter@owncloud.com>
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user