From cfa293d189fae9af9c025bf40a19e9ac69f8f839 Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Wed, 26 Oct 2022 22:29:19 +0100 Subject: [PATCH] Fix bug in admin socket where requests fail unless `"arguments":{}` is specified in the JSON --- src/admin/admin.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/admin/admin.go b/src/admin/admin.go index b24bf0de..9dbcfdca 100644 --- a/src/admin/admin.go +++ b/src/admin/admin.go @@ -327,6 +327,7 @@ func (a *AdminSocket) handleRequest(conn net.Conn) { var buf json.RawMessage var req AdminSocketRequest var resp AdminSocketResponse + req.Arguments = []byte("{}") if err := func() error { if err = decoder.Decode(&buf); err != nil { return fmt.Errorf("Failed to find request")