From 6ee37dc0af8bb95002ca85f5950171658727deba Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 14 May 2026 21:09:11 +0000 Subject: [PATCH] middleware/parameter.go: fix comment about ParseForm fallback for non-multipart types Agent-Logs-Url: https://github.com/go-openapi/runtime/sessions/19da5630-9b1a-4aec-ac77-ca9c8552d4c3 Co-authored-by: fredbi <14262513+fredbi@users.noreply.github.com> --- middleware/parameter.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/middleware/parameter.go b/middleware/parameter.go index d0108424..da37d9ac 100644 --- a/middleware/parameter.go +++ b/middleware/parameter.go @@ -100,7 +100,8 @@ func (p *untypedParamBinder) Bind(request *http.Request, routeParams RouteParams } // Parse via the shared helper. The helper routes on Content-Type - // (multipart/form-data → ParseMultipartForm, otherwise → ParseForm) + // (multipart/form-data → ParseMultipartForm; all non-multipart types, + // including application/x-www-form-urlencoded, → ParseForm) // and applies the default 32 MiB body cap via http.MaxBytesReader. // Idempotent across the per-parameter loop: stdlib short-circuits // when r.MultipartForm / r.PostForm are already populated.