From 2ecbf46cb8ff7e98d254b537be36252e93543160 Mon Sep 17 00:00:00 2001 From: Peter Stuifzand Date: Sat, 16 Feb 2019 07:50:19 +0100 Subject: [PATCH] Use parsed Form parameters --- pkg/server/microsub.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/server/microsub.go b/pkg/server/microsub.go index 967f987..848e07b 100644 --- a/pkg/server/microsub.go +++ b/pkg/server/microsub.go @@ -117,7 +117,7 @@ func (h *microsubHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { } else if r.Method == http.MethodPost { w.Header().Add("Access-Control-Allow-Origin", "*") - values := r.URL.Query() + values := r.Form action := values.Get("action") if action == "channels" { name := values.Get("name")