use head to check heartbeat

This commit is contained in:
Bruce MacDonald 2023-08-01 14:50:38 -04:00
parent 40a25bf8c3
commit 765994362c
2 changed files with 4 additions and 1 deletions

View file

@ -225,7 +225,7 @@ func (c *Client) Delete(ctx context.Context, req *DeleteRequest) error {
}
func (c *Client) Heartbeat(ctx context.Context) error {
if err := c.do(ctx, http.MethodGet, "/", nil, nil); err != nil {
if err := c.do(ctx, http.MethodHead, "/", nil, nil); err != nil {
return err
}
return nil