From ed52fca79a85173f19e212d55909d768c14bd51c Mon Sep 17 00:00:00 2001 From: akvlad Date: Mon, 11 Sep 2023 22:16:51 +0300 Subject: [PATCH] fix: payload check to be cloud compatible --- iox_client_query.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iox_client_query.go b/iox_client_query.go index c810d72..bcc7258 100644 --- a/iox_client_query.go +++ b/iox_client_query.go @@ -32,7 +32,7 @@ func (c *Client) Handshake(ctx context.Context) error { if err != nil { return err } - if !bytes.Equal(resp.Payload, payload) { + if !bytes.Equal(resp.Payload, payload) && resp.Payload != nil { return errors.New("handshake payload response does not match request") } return nil