diff --git a/webhook.go b/webhook.go index fe2fbed..7903f20 100644 --- a/webhook.go +++ b/webhook.go @@ -65,14 +65,12 @@ func rootHandler() string { } func hookHandler(req *http.Request, params martini.Params) string { - var p map[string]interface{} + p := make(map[string]interface{}) if req.Header.Get("Content-Type") == "application/json" { decoder := json.NewDecoder(req.Body) decoder.UseNumber() - p = make(map[string]interface{}) - err := decoder.Decode(&p) if err != nil {