From 077ef0c4c87a8a83e5a01d5477854f64732ebe1c Mon Sep 17 00:00:00 2001 From: Georg Spar Date: Fri, 9 Jun 2023 14:14:12 +0200 Subject: [PATCH] =?UTF-8?q?Test=20f=C3=BCr=20Form-Data?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wdm.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wdm.go b/wdm.go index abaf464..af24a0b 100644 --- a/wdm.go +++ b/wdm.go @@ -71,6 +71,10 @@ func createTypHandler(writer http.ResponseWriter, req *http.Request) { if req.Method == http.MethodOptions { return } + req.ParseForm() + for formKey, formValue := range req.Form { + log.Printf("parsing from Form: %s = %s", formKey, formValue) + } body, err := io.ReadAll(req.Body) if err != nil { writer.WriteHeader(http.StatusBadRequest)