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'
This commit is contained in:
parent
0652aefcb5
commit
978c6a36e7
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue