diff --git a/cmd/mothd/httpd_test.go b/cmd/mothd/httpd_test.go index 2ec8e25..f8bbb5b 100644 --- a/cmd/mothd/httpd_test.go +++ b/cmd/mothd/httpd_test.go @@ -50,7 +50,7 @@ func TestHttpd(t *testing.T) { if r := hs.TestRequest("/state", nil); r.Result().StatusCode != 200 { t.Error(r.Result()) - } else if r.Body.String() != `{"Config":{"Devel":false},"Messages":"messages.html","TeamNames":{"self":""},"PointsLog":[],"Puzzles":{}}` { + } else if r.Body.String() != `{"Config":{"Devel":false},"Messages":"messages.html","TeamNames":{},"PointsLog":[],"Puzzles":{}}` { t.Error("Unexpected state", r.Body.String()) } diff --git a/cmd/mothd/server.go b/cmd/mothd/server.go index f801857..0b35618 100644 --- a/cmd/mothd/server.go +++ b/cmd/mothd/server.go @@ -183,7 +183,7 @@ func (mh *MothRequestHandler) exportStateIfRegistered(override bool) *StateExpor registered := override || (err == nil) export.Messages = mh.State.Messages() -inin export.TeamNames = make(map[string]string) + export.TeamNames = make(map[string]string) // Anonymize team IDs in points log, and write out team names pointsLog := mh.State.PointsLog()