diff --git a/internal/test_form/oas_request_decoders_gen.go b/internal/test_form/oas_request_decoders_gen.go index 0ca526980..91710a047 100644 --- a/internal/test_form/oas_request_decoders_gen.go +++ b/internal/test_form/oas_request_decoders_gen.go @@ -48,10 +48,10 @@ func (s *Server) decodeTestFormURLEncodedRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - if err := r.ParseForm(); err != nil { + form, err := ht.ParseForm(r) + if err != nil { return req, close, errors.Wrap(err, "parse form") } - form := r.PostForm var request TestForm q := uri.NewQueryDecoder(form) diff --git a/internal/test_http_requests/oas_request_decoders_gen.go b/internal/test_http_requests/oas_request_decoders_gen.go index 660f23faa..409ce0e32 100644 --- a/internal/test_http_requests/oas_request_decoders_gen.go +++ b/internal/test_http_requests/oas_request_decoders_gen.go @@ -78,10 +78,10 @@ func (s *Server) decodeAllRequestBodiesRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - if err := r.ParseForm(); err != nil { + form, err := ht.ParseForm(r) + if err != nil { return req, close, errors.Wrap(err, "parse form") } - form := r.PostForm var request AllRequestBodiesApplicationXWwwFormUrlencoded { @@ -301,10 +301,10 @@ func (s *Server) decodeAllRequestBodiesOptionalRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - if err := r.ParseForm(); err != nil { + form, err := ht.ParseForm(r) + if err != nil { return req, close, errors.Wrap(err, "parse form") } - form := r.PostForm var request AllRequestBodiesOptionalApplicationXWwwFormUrlencoded {