From 1879ec81eab5dce5f780f465a59d2479f8246fd2 Mon Sep 17 00:00:00 2001 From: Juliusz Chroboczek Date: Sat, 29 Apr 2023 19:59:36 +0200 Subject: [PATCH] Don't send empty version fields. We used to send a null version field in every message. Don't. --- rtpconn/webclient.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtpconn/webclient.go b/rtpconn/webclient.go index d05f43a..e4351cb 100644 --- a/rtpconn/webclient.go +++ b/rtpconn/webclient.go @@ -113,7 +113,7 @@ func (c *webClient) PushClient(group, kind, id string, username string, perms [] type clientMessage struct { Type string `json:"type"` - Version []string `json:"version"` + Version []string `json:"version,omitempty"` Kind string `json:"kind,omitempty"` Error string `json:"error,omitempty"` Id string `json:"id,omitempty"`