Skip to content

Commit

Permalink
Don't send empty version fields.
Browse files Browse the repository at this point in the history
We used to send a null version field in every message.  Don't.
  • Loading branch information
jech committed Apr 29, 2023
1 parent e786e1b commit 1879ec8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rtpconn/webclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down

0 comments on commit 1879ec8

Please sign in to comment.