diff --git a/httpbin/helpers.go b/httpbin/helpers.go index 889f40b52c6f0526cd42ad15cf71e2806bd385ef..ec44cc9717668444e202899df49758eef427fe5f 100644 --- a/httpbin/helpers.go +++ b/httpbin/helpers.go @@ -107,7 +107,7 @@ func parseBody(w http.ResponseWriter, r *http.Request, resp *bodyResponse) error ct := r.Header.Get("Content-Type") switch { - case ct == "application/x-www-form-urlencoded": + case strings.HasPrefix(ct, "application/x-www-form-urlencoded"): if err := r.ParseForm(); err != nil { return err }