set muxrpc header flag correctly

This commit is contained in:
Henry 2021-05-24 16:18:59 +02:00 committed by Henry
parent 85ee99a1b2
commit 4d3b880acc
1 changed files with 1 additions and 0 deletions

View File

@ -51,6 +51,7 @@ func (h *Handler) attendants(ctx context.Context, req *muxrpc.Request, snk *muxr
h.state.AddEndpoint(*peer, req.Endpoint())
// send the current state
snk.SetEncoding(muxrpc.TypeJSON)
err = json.NewEncoder(snk).Encode(AttendantsInitialState{
Type: "state",
IDs: h.state.ListAsRefs(),