Use parsed Form parameters
All checks were successful
the build was successful

This commit is contained in:
Peter Stuifzand 2019-02-16 07:50:19 +01:00
parent e545f796ee
commit 2ecbf46cb8
Signed by: peter
GPG Key ID: 374322D56E5209E8

View File

@ -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")