From 6d2ea0ce5973eb813304bf65dcc93659ed5264c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E8=8C=B6=E6=B8=85=E6=AC=A2?= Date: Sun, 17 Jul 2022 22:35:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dget=E8=AF=B7=E6=B1=82?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E8=A7=A3=E6=9E=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- request/form.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/request/form.go b/request/form.go index 1aab816..f5b7106 100644 --- a/request/form.go +++ b/request/form.go @@ -44,7 +44,7 @@ func (f *form) Parse(ctx *gin.Context, receiver interface{}) error { method == http.MethodTrace || method == http.MethodConnect || method == http.MethodOptions { - return ctx.ShouldBindQuery(receiver) + return ctx.ShouldBind(receiver) } if method == http.MethodPost ||