mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-10-20 05:23:15 -04:00
fix bug in checkhttp.go
Signed-off-by: Christian Richter <crichter@owncloud.com>
This commit is contained in:
1 parent
e1fb51ea9d
commit
dd59a36344
1 file changed
+2
-1
@@ -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