From a4ce24550c69801efcc421ae6511f64b2dd63310 Mon Sep 17 00:00:00 2001 From: Adnan Hajdarevic Date: Tue, 13 Jan 2015 01:49:49 +0100 Subject: [PATCH] fix --- webhook.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 {