|
|
@ -71,6 +71,10 @@ func createTypHandler(writer http.ResponseWriter, req *http.Request) { |
|
|
|
if req.Method == http.MethodOptions { |
|
|
|
if req.Method == http.MethodOptions { |
|
|
|
return |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
req.ParseForm() |
|
|
|
|
|
|
|
for formKey, formValue := range req.Form { |
|
|
|
|
|
|
|
log.Printf("parsing from Form: %s = %s", formKey, formValue) |
|
|
|
|
|
|
|
} |
|
|
|
body, err := io.ReadAll(req.Body) |
|
|
|
body, err := io.ReadAll(req.Body) |
|
|
|
if err != nil { |
|
|
|
if err != nil { |
|
|
|
writer.WriteHeader(http.StatusBadRequest) |
|
|
|
writer.WriteHeader(http.StatusBadRequest) |
|
|
|