From 978c6a36e745c68c76b8a91c2b0899b5a7de4e6f Mon Sep 17 00:00:00 2001 From: Josh de Kock Date: Tue, 29 Mar 2016 23:18:58 +0100 Subject: [PATCH] http: stopped throwing error on invalid event Event is an optional key, and if it's invalid or non-existent then it can just be assumed as 'none' --- server/http/request.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/http/request.go b/server/http/request.go index d824435..45f94be 100644 --- a/server/http/request.go +++ b/server/http/request.go @@ -24,7 +24,7 @@ func announceRequest(r *http.Request, cfg *httpConfig) (*chihaya.AnnounceRequest eventStr, err := q.String("event") if err != nil { - return nil, tracker.ClientError("failed to parse parameter: event") + eventStr = "none" } request.Event, err = event.New(eventStr) if err != nil {