Browse Source

Test für Form-Data

pull/1/head
Georg Spar 1 year ago
parent
commit
077ef0c4c8
  1. 4
      wdm.go

4
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)

Loading…
Cancel
Save